forked from mamba-org/quetz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (79 loc) · 1.88 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3"
services:
web:
image: quetz_dev_image
container_name: quetz-web
ports:
- "8000:8000"
build:
context: .
dockerfile: ./docker/Dockerfile
environment:
- HTTPX_LOG_LEVEL=TRACE
command:
[
"sh",
"-c",
"./docker/wait-for-postgres.sh database && quetz start /quetz-deployment --host 0.0.0.0 --port 8000 --reload",
]
depends_on:
- database
- init-db
volumes:
- .:/code
- quetz_deployment:/quetz-deployment
env_file:
- docker/postgres.env
init-db:
image: quetz_dev_image
command:
[
"sh",
"-c",
"./docker/wait-for-postgres.sh database && quetz create /quetz-deployment --copy-conf /code/docker/docker_config.toml --exists-ok && quetz init-db /quetz-deployment",
]
depends_on:
- database
volumes:
- .:/code
- quetz_deployment:/quetz-deployment
env_file:
- docker/postgres.env
database:
image: postgres
volumes:
- ./docker/postgres.conf:/etc/postgresql/postgresql.conf
env_file:
- docker/postgres.env
prometheus:
image: prom/prometheus
volumes:
- ./docker/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- ./docker/graphana_datasources.yml:/etc/grafana/provisioning/datasources/datasource.yaml
env_file:
- docker/grafana.env
jupyterhub:
build:
context: docker
dockerfile: Dockerfile.jupyterhub
command: jupyterhub --debug
ports:
- 8001:8000
nginx:
image: nginx:stable
container_name: quetz-nginx
entrypoint: ["nginx", "-g", "daemon off;"]
ports:
- "8080:8080"
depends_on:
- web
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
- quetz_deployment:/quetz-deployment
volumes:
quetz_deployment: