-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.4 KB
/
docker-compose.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
version: "3"
volumes:
pg_data:
web_root:
services:
ui:
platform: linux/amd64
build:
context: ui
volumes:
- ./ui/app:/app
- "web_root:/app/dist:z"
hostname: ui
restart: "no"
env_file: .env
api:
platform: linux/amd64
build:
context: api
args:
ENABLE_JUPYTER: ${ENABLE_JUPYTER}
ENABLE_R: ${ENABLE_R}
hostname: api
restart: unless-stopped
entrypoint: sh -c '/app/entrypoint.sh'
volumes:
- ./api/app:/app
- ./api/notebooks:/notebooks
#- ./api/notebooks:/data/notebooks
# - ./api/app/notebook/startup:/root/.ipython/profile_default/startup
# - ./api/app/notebook/nbextensions/printview:/root/.local/share/jupyter/nbextensions/printview
- ./api/backups:/vol/backups
- ./api/static:/vol/web/static:z
- ./api/media:/vol/web/media:z
- ./data:/data
- ./README.md:/app/README.md
- ./.git:/app/docs/.git
# - ./api/notebooks:/data/notebooks
- ./conf/jupyter:/root/.jupyter
- ./conf/ipython:/root/.ipython
env_file: .env
environment:
- GIT_VERSION=${GIT_VERSION}
- GIT_BRANCH=${GIT_BRANCH}
- GIT_LASTCOMMITDATE=${GIT_LASTCOMMITDATE}
depends_on:
- db
db:
platform: linux/amd64
build:
context: db
hostname: db
restart: unless-stopped
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data