-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-demo.yml
61 lines (53 loc) · 1.47 KB
/
docker-compose-demo.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
version: "3.7"
volumes:
production_postgres_data_demo: {}
production_postgres_data_backups_demo: {}
media_volume_habhub_demo: {}
services:
react_frontend_demo:
image: ghcr.io/whoigit/habhub-react-frontend:develop
container_name: react_frontend_demo
environment:
- "REACT_APP_API_URL=https://habhub.whoi.edu/services/"
django_demo: &django_demo
image: ghcr.io/whoigit/habhub-dataserver:develop
container_name: django_demo
depends_on:
- postgres_demo
volumes:
- media_volume_habhub_demo:/app/media # <-- bind the media files
env_file:
- ./.envs/.production/.django_demo
- ./.envs/.production/.postgres_demo
restart: unless-stopped
command: /start
postgres_demo:
image: ghcr.io/whoigit/postgres-postgis-docker:12
container_name: postgres_demo
volumes:
- production_postgres_data_demo:/var/lib/postgresql/data
- production_postgres_data_backups_demo:/backups
env_file:
- ./.envs/.production/.postgres_demo
restart: unless-stopped
redis_demo:
image: redis:6.0
container_name: redis_demo
celeryworker_demo:
<<: *django_demo
container_name: celeryworker_demo
depends_on:
- postgres_demo
ports: []
command: /start-celeryworker
celerybeat_demo:
container_name: celerybeat_demo
<<: *django_demo
depends_on:
- postgres_demo
ports: []
command: /start-celerybeat
networks:
default:
external:
name: habhub-network