-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-stable-prod.yml
executable file
·122 lines (119 loc) · 2.96 KB
/
docker-compose-stable-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_stable_frontend
image: gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/website:prod
restart: always
ports:
- 8181:80
networks:
- drugstone-stable
labels:
- "com.centurylinklabs.watchtower.enable=true"
backend:
image: gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod
container_name: drugstone_stable_backend
command:
- "sh"
- "scripts/docker-entrypoint.sh"
env_file:
- 'docker-django.stable.env'
restart: always
volumes:
- drugstone_stable_db_schema_volume:/usr/src/drugstone/drugstone/migrations
- drugstone_stable_data_volume:/usr/src/drugstone/data
ports:
- 8182:8000
networks:
- drugstone-stable
depends_on:
- db
- redis
labels:
- "com.centurylinklabs.watchtower.enable=true"
db:
image: postgres:14
container_name: drugstone_stable_postgres
restart: always
hostname: drugstone_stable_postgres
# ports:
# - 5432:5432
networks:
- drugstone-stable
volumes:
- drugstone_stable_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_stable_redis
restart: always
command: ["redis-server"]
networks:
- drugstone-stable
# 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_stable_celery
hostname: drugstone_stable_celery
volumes:
- drugstone_data_volume:/usr/src/drugstone/data
env_file:
- './docker-django.stable.env'
depends_on:
- redis
- db
networks:
- drugstone-stable
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_stable_celery_beat
hostname: drugstone_stable_celery_beat
restart: always
env_file:
- './docker-django.stable.env'
depends_on:
- redis
- db
networks:
- drugstone-stable
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-stable:
volumes:
drugstone_stable_db_volume:
external: true
drugstone_stable_db_schema_volume:
external: true
drugstone_stable_data_volume:
external: true
drugstone_stable_cdn_volume:
external: true