forked from Giskard-AI/giskard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.48 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
57
58
59
60
61
62
63
64
version: "3.8"
services:
db:
image: postgres:12-alpine
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
deploy:
placement:
constraints:
- node.labels.${STACK_NAME?Variable not set}.app-db-data == true
backend:
image: '${DOCKER_REGISTRY}/giskard-backend:${TAG-latest}'
volumes:
- app-files-bucket:/app/files-bucket
depends_on:
- db
env_file:
- .env
environment:
- SERVER_NAME=${DOMAIN?Variable not set}
- SERVER_HOST=https://${DOMAIN?Variable not set}
# Allow explicit env var override for tests
- SMTP_HOST=${SMTP_HOST}
build:
context: ./backend
dockerfile: backend.dockerfile
args:
INSTALL_DEV: '${INSTALL_DEV-false}'
frontend:
image: '${DOCKER_REGISTRY}/giskard-frontend:${TAG-latest}'
depends_on:
- backend
env_file:
- .env
build:
context: ./frontend
args:
FRONTEND_ENV: ${FRONTEND_ENV-production}
jupyter:
image: '${DOCKER_REGISTRY}/giskard-jupyter:${TAG-latest}'
build:
context: ./backend/demo-notebook
dockerfile: demo-notebook.dockerfile
entrypoint:
- /usr/local/bin/start.sh
- jupyter
- notebook
- --NotebookApp.token=''
volumes:
- ./backend/demo-notebook/notebook:/home/jovyan
ports:
- '18888:8888'
volumes:
app-db-data:
app-files-bucket: