-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-staging.yml
71 lines (63 loc) · 1.62 KB
/
docker-compose-staging.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
version: "3.7"
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
static_volume_habhub: {}
media_volume_habhub: {}
services:
react_frontend:
image: ghcr.io/whoigit/habhub-react-frontend:develop
container_name: react_frontend
environment:
- "REACT_APP_API_URL=https://habhub-staging.whoi.edu/services/"
ports:
- "172.17.0.1:3300:3000"
django: &django
image: ghcr.io/whoigit/habhub-dataserver:develop
container_name: django
depends_on:
- postgres
- redis
volumes:
- static_volume_habhub:/app/staticfiles # <-- bind the static files
- media_volume_habhub:/app/media # <-- bind the media files
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
restart: unless-stopped
command: /start
ports:
- "172.17.0.1:8000:8000"
postgres:
image: ghcr.io/whoigit/postgres-postgis-docker:12
container_name: postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups
env_file:
- ./.envs/.production/.postgres
restart: unless-stopped
redis:
image: redis:6.0
celeryworker:
<<: *django
container_name: django_celeryworker
depends_on:
- redis
- postgres
ports: []
command: /start-celeryworker
celerybeat:
container_name: django_celerybeat
<<: *django
depends_on:
- redis
- postgres
ports: []
command: /start-celerybeat
flower:
container_name: django_flower
<<: *django
ports:
- "172.17.0.1:5555:5555"
command: /start-flower