-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (55 loc) · 1.12 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
version: "3.8"
services:
backend:
depends_on:
- db
build:
dockerfile: ./Dockerfile
env_file:
- ./doc_env/docker.env
volumes:
- ./:/app
- static_volume:/app/static
command:
- '/app/entrypoint.sh'
db:
image: postgres:15.2-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
ports:
- '${DB_PORT}:${DB_PORT}'
volumes:
- db:/var/lib/postgresql/data
nginx:
build: ./nginx
volumes:
- static_volume:/app/static
ports:
- 1337:80
depends_on:
- backend
restart: "on-failure"
redis:
image: redis:7.0.10-alpine
expose:
- 6379
restart: unless-stopped
worker:
restart: unless-stopped
build:
context: .
dockerfile: ./Dockerfile
env_file:
- ./doc_env/docker.env
entrypoint: /app/worker-entrypoint.sh
volumes:
- ./:/app
- static_volume:/app/static
depends_on:
- backend
- redis
volumes:
db:
static_volume: