forked from TJCatFood/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.63 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3'
services:
db:
image: postgres:13-alpine
restart: always
volumes:
- "./.persistence/db:/var/lib/postgresql/data"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
redis:
image: redis:6-alpine
restart: always
ports:
- 6379:6379
minio:
image: minio/minio:latest
restart: always
volumes:
- "./.persistence/minio/data:/data"
- "./.persistence/minio/config/:/root/.minio"
environment:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
ports:
- 9000:9000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
command: server /data
nchan:
build:
context: .
dockerfile: Dockerfile.nchan.dev
volumes:
- "./nchan/nchan.conf:/etc/nginx/sites-enabled/default"
ports:
- 8080:8080
- 8081:8081
web:
build:
context: .
dockerfile: Dockerfile.web.dev
environment:
- SECRET_KEY=EatingOurOwnCatFood
- DEBUG=1
- DB_HOST=db
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_PORT=5432
- REDIS=redis://redis:6379
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
- MINIO_ADDRESS=$MINIO_ADDRESS
command: "python manage.py runserver 0.0.0.0:8000"
user: "${USER_ID}:${GROUP_ID}"
volumes:
- "./catfood:/code/catfood:rw"
ports:
- 8000:8000
depends_on:
- db
- redis
- minio
- nchan