-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 996 Bytes
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
version: '3'
services:
djangoapp:
image: agmp
container_name: agmp_django_instance
restart: unless-stopped
build: .
#command: python manage.py runserver 0.0.0.0:8000
#command: tail -f /dev/null
command: gunicorn african_genomics_medicine_portal.wsgi:application -w 2 -b :8000
volumes:
- static:/agmp/static_cdn
expose:
- 8000
networks: # <-- here
- agmp_network
nginx:
image: nginx:latest
container_name: agmp_nginx_instance
restart: unless-stopped
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- static:/agmp/static_cdn
ports:
- 8080:80
depends_on: # <-- wait for djangoapp to be "ready" before starting this service
- djangoapp
networks: # <-- here
- agmp_network
networks: # <-- and here
agmp_network:
driver: bridge
volumes:
static: