This repository was archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prd.yml
More file actions
82 lines (74 loc) · 1.67 KB
/
docker-compose.prd.yml
File metadata and controls
82 lines (74 loc) · 1.67 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
version: '3.7'
services:
production_api:
container_name: production_api
build:
context: ./backend
dockerfile: ./Dockerfile-prd
expose:
- 8000
volumes:
- static_data:/vol/web/static
- media_data:/vol/web/media
env_file:
- .env.prd
depends_on:
- production_db
- production_redis
entrypoint: ["entrypoint-prd.sh"]
production_db:
container_name: production_db
image: postgres:13.1
env_file:
- .env.prd
volumes:
- postgres_data:/var/lib/postgresql/data/
production_redis:
container_name: production_redis
image: redis:6.0.9-alpine3.12
production_celery:
container_name: production_celery
build:
context: ./backend
dockerfile: ./Dockerfile-prd
env_file:
- .env.prd
depends_on:
- production_redis
entrypoint: [ "entrypoint-celery.sh" ]
production_celery-beat:
container_name: production_celery-beat
build:
context: ./backend
dockerfile: ./Dockerfile-prd
env_file:
- .env.prd
depends_on:
- production_redis
entrypoint: [ "entrypoint-celery-beat.sh" ]
production_api_proxy:
container_name: production_api_proxy
build: ./backend/proxy
volumes:
- static_data:/vol/web/static
- media_data:/vol/web/media
ports:
- "8000:8000"
depends_on:
- production_api
- production_db
production_app:
container_name: production_app
build: ./frontend
ports:
- "80:80"
env_file:
- .env.prd
depends_on:
- production_api
- production_db
- production_api_proxy
volumes:
static_data:
media_data:
postgres_data: