-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yaml
107 lines (107 loc) · 2.69 KB
/
docker-compose.yaml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# compose config on latest release builds
services:
ray-head:
user: "0"
container_name: ray-head
image: icr.io/quantum-public/qiskit-serverless/ray-node:${VERSION:-0.18.0}
entrypoint: [
"ray", "start", "--head", "--port=6379",
"--dashboard-host=0.0.0.0", "--block"
]
ports:
- 8265:8265
volumes:
- host-shm:/dev/shm
networks:
- safe-tier
postgres:
image: postgres
environment:
POSTGRES_DB: serverlessdb
POSTGRES_USER: serverlessuser
POSTGRES_PASSWORD: serverlesspassword
networks:
- safe-tier
ports:
- 5432:5432
restart:
always
gateway:
container_name: gateway
image: icr.io/quantum-public/qiskit-serverless/gateway:${VERSION:-0.18.0}
command: gunicorn main.wsgi:application --bind 0.0.0.0:8000 --workers=4
ports:
- 8000:8000
environment:
- DEBUG=0
- RAY_HOST=http://ray-head:8265
- DJANGO_SUPERUSER_USERNAME=admin
- DJANGO_SUPERUSER_PASSWORD=123
- SITE_HOST=http://gateway:8000
- SETTINGS_AUTH_MECHANISM=mock_token
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- DATABASE_NAME=serverlessdb
- DATABASE_USER=serverlessuser
- DATABASE_PASSWORD=serverlesspassword
networks:
- safe-tier
volumes:
- program-artifacts:/usr/src/app/media/
depends_on:
- postgres
scheduler:
container_name: scheduler
image: icr.io/quantum-public/qiskit-serverless/gateway:${VERSION:-0.18.0}
entrypoint: "./scripts/scheduler.sh"
environment:
- DEBUG=0
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- DATABASE_NAME=serverlessdb
- DATABASE_USER=serverlessuser
- DATABASE_PASSWORD=serverlesspassword
- RAY_CLUSTER_MODE_LOCAL_HOST=http://ray-head:8265
- RAY_CLUSTER_MODE_LOCAL=1
- SETTINGS_AUTH_MECHANISM=mock_token
networks:
- safe-tier
volumes:
- program-artifacts:/usr/src/app/media/
depends_on:
- postgres
prometheus:
image: prom/prometheus:v2.44.0
profiles: [ "full" ]
ports:
- 9000:9090
loki:
image: grafana/loki:2.8.4
profiles: [ "full" ]
ports:
- 3100:3100
command: -config.file=/etc/loki/local-config.yaml
networks:
- safe-tier
promtail:
image: grafana/promtail:2.8.4
profiles: [ "full" ]
volumes:
- host-log:/var/log
command: -config.file=/etc/promtail/config.yml
networks:
- safe-tier
grafana:
image: grafana/grafana:latest
profiles: [ "full" ]
ports:
- 3000:3000
networks:
- safe-tier
networks:
safe-tier:
volumes:
program-artifacts:
host-shm:
host-log: