forked from kitsune-soc/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 915 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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: