kitsune/docker-compose.yml

51 lines
915 B
YAML

version: "3.1"
services:
backend:
image: kitsune
command: --config config.toml
ports:
- "5000:5000"
networks:
- backend
environment:
DATABASE_URL: postgres://kitsune:password@db/kitsune
DOMAIN: example.com
PORT: 5000
JOB_WORKERS: 1
REDIS_URL: redis://redis:6379
RUST_LOG: debug
volumes:
- upload-data:/app/uploads
- type: bind
source: ${KITSUNE_CONFIG}
target: /app/config.toml
read_only: true
depends_on:
- db
- redis
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: kitsune
POSTGRES_USER: kitsune
POSTGRES_PASSWORD: password
networks:
- backend
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: redis:alpine
networks:
- backend
networks:
backend: {}
volumes:
db-data:
search-index:
upload-data: