forked from mljar/mercury
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.19 KB
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
version: '2'
services:
nginx:
restart: unless-stopped
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
ports:
- 80:80
volumes:
- static_volume:/app/mercury/django_static
- media_volume:/app/mercury/media
- ./docker/nginx:/etc/nginx/conf.d
depends_on:
- mercury
mercury:
restart: unless-stopped
build:
context: .
dockerfile: ./docker/mercury/Dockerfile
entrypoint: /app/docker/mercury/entrypoint.sh
volumes:
- ${NOTEBOOKS_PATH}:/app/notebooks
- static_volume:/app/mercury/django_static
- media_volume:/app/mercury/media
expose:
- 8000
environment:
DEBUG: ${DEBUG}
SERVE_STATIC: ${SERVE_STATIC}
DJANGO_SUPERUSER_USERNAME: ${DJANGO_SUPERUSER_USERNAME}
DJANGO_SUPERUSER_PASSWORD: ${DJANGO_SUPERUSER_PASSWORD}
DJANGO_SUPERUSER_EMAIL: ${DJANGO_SUPERUSER_EMAIL}
SECRET_KEY: ${SECRET_KEY}
ALLOWED_HOSTS: ${ALLOWED_HOSTS}
volumes:
static_volume: {}
media_volume: {}