forked from marvel-nccr/quantum-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (32 loc) · 1021 Bytes
/
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
# launch with `docker-compose up -d`
# wait for the container to report healthy
# then enter with `docker exec -it -u max quantum-mobile /bin/bash`
# finally teardown with `docker-compose down -v`
version: '3'
services:
quantum-mobile:
image: "marvelnccr/quantum-mobile:develop"
container_name: quantum-mobile
expose:
- "8888" # AiiDa Lab
- "8890" # Jupyter Lab
# - "5000" # REST API
ports:
# local:container
- 8888:8888
- 8890:8890
# - 5000:5000
# privileged mode and mounting the cgroup are required for correctly running sytsemd inside the container
privileged: true
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
environment:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
healthcheck:
# check that the daemon has been started for the 'generic' profile
# can take a few minutes to start
test: systemctl is-active --quiet [email protected]
interval: 30s
retries: 6
start_period: 30s