-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-prod.yml
executable file
·122 lines (119 loc) · 2.78 KB
/
docker-compose-prod.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3.3'
services:
frontend:
container_name: drugstone_frontend
image: gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/website:prod
restart: always
ports:
- 8031:80
networks:
- drugstone
labels:
- "com.centurylinklabs.watchtower.enable=true"
backend:
image: gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod
container_name: drugstone_backend
command:
- "sh"
- "scripts/docker-entrypoint.sh"
env_file:
- 'docker-django.env'
restart: always
volumes:
- drugstone_db_schema_volume:/usr/src/drugstone/drugstone/migrations
- drugstone_data_volume:/usr/src/drugstone/data
ports:
- 8032:8000
networks:
- drugstone
depends_on:
- db
- redis
labels:
- "com.centurylinklabs.watchtower.enable=true"
db:
image: postgres:14
container_name: drugstone_postgres
restart: always
hostname: drugstone_postgres
# ports:
# - 5432:5432
networks:
- drugstone
volumes:
- drugstone_db_volume:/var/lib/postgresql/data
environment:
- POSTGRES_DB=drugstone
- POSTGRES_USER=drugstone
- POSTGRES_PASSWORD=t6278yczAH7rPKVMxaDD
command:
- "postgres"
- "-c"
- "max_connections=10000"
- "-c"
- "shared_buffers=2GB"
redis:
image: redis
container_name: drugstone_redis
restart: always
command: ["redis-server"]
networks:
- drugstone
# ports:
# - 6379:6379
celery:
image: gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod
command:
- "sh"
- "scripts/start_celery_worker.sh"
restart: always
container_name: drugstone_celery
hostname: drugstone_celery
volumes:
- drugstone_data_volume:/usr/src/drugstone/data
env_file:
- './docker-django.env'
depends_on:
- redis
- db
networks:
- drugstone
labels:
- "com.centurylinklabs.watchtower.enable=true"
celery-beat:
image: gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod
command:
- "sh"
- "scripts/start_celery_beat.sh"
container_name: drugstone_celery_beat
hostname: drugstone_celery_beat
restart: always
env_file:
- './docker-django.env'
depends_on:
- redis
- db
networks:
- drugstone
labels:
- "com.centurylinklabs.watchtower.enable=true"
cdn:
build: cdn
image: drugstone_cdn
container_name: drugstone_cdn
restart: always
volumes:
- drugstone_cdn_volume:/app/files
ports:
- 8033:80
networks:
drugstone:
volumes:
drugstone_db_volume:
external: true
drugstone_db_schema_volume:
external: true
drugstone_data_volume:
external: true
drugstone_cdn_volume:
external: true