-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.self.yml
More file actions
96 lines (89 loc) · 1.66 KB
/
Copy pathdocker-compose.self.yml
File metadata and controls
96 lines (89 loc) · 1.66 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.1'
services:
nginx:
ports:
- "80:80"
build:
context: ./etc/nginx/
dockerfile: Dockerfile
args:
- DOCKER_REGISTRY
- PIP_INDEX_URL
- PIP_TRUSTED_HOST
volumes:
- static_store:/opt/app/public
depends_on:
- web
web:
ports:
- "8000:8000"
build:
context: .
dockerfile: Dockerfile
args:
- DOCKER_REGISTRY
- PIP_INDEX_URL
- PIP_TRUSTED_HOST
env_file:
- .env
environment:
- DB_HOST=db
- REDIS_HOST=redis
depends_on:
- db
- redis
command: ["web"]
volumes:
- static_store:/opt/app/public
db:
image: ${DOCKER_REGISTRY}/postgres:17.5-bookworm
ports:
- "5432:5432"
env_file:
- .env
volumes:
- pg_store:/var/lib/postgresql/data
redis:
image: ${DOCKER_REGISTRY}/redis:8.0.2-bookworm
ports:
- "6379:6379"
env_file:
- .env
celery:
build:
context: .
dockerfile: Dockerfile.celery
args:
- DOCKER_REGISTRY
- PIP_INDEX_URL
- PIP_TRUSTED_HOST
env_file:
- .env
environment:
- DB_HOST=db
- REDIS_HOST=redis
- LOG_DIR=/var/log/web_app
depends_on:
- db
- redis
command: [ "celery" ]
beat:
build:
context: .
dockerfile: Dockerfile.celery
args:
- DOCKER_REGISTRY
- PIP_INDEX_URL
- PIP_TRUSTED_HOST
env_file:
- .env
environment:
- DB_HOST=db
- REDIS_HOST=redis
- LOG_DIR=/var/log/web_app
depends_on:
- celery
command: [ "beat" ]
volumes:
static_store:
pg_store: