Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.79 KB
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
services:
notebook:
# Always built locally from the Dockerfile, never pulled from a registry.
# To use the prebuilt image instead, see docker-compose.prebuilt.yml.
image: quantum-lab:local
build: .
pull_policy: build
ports:
- "127.0.0.1:8888:8888" # only reachable from your own machine
volumes:
- ./notebooks:/home/quantum/work
environment:
JUPYTER_TOKEN: ${JUPYTER_TOKEN:-quantum}
QCS_SETTINGS_APPLICATIONS_QVM_URL: http://qvm:5000
QCS_SETTINGS_APPLICATIONS_QUILC_URL: tcp://quilc:5555
depends_on:
- qvm
- quilc
# Rigetti's simulator and compiler, used by pyQuil.
qvm:
image: rigetti/qvm:latest
platform: linux/amd64 # x86-only image; Docker Desktop emulates it on Apple Silicon
command: -S
quilc:
# Multi-arch image (amd64 + arm64): runs natively on Apple Silicon.
# Don't force linux/amd64 here; quilc freezes under emulation.
image: rigetti/quilc:latest
command: -R
# Qanvas, the visual circuit builder: https://github.com/Ethan-Rivas/qanvas
qanvas:
image: ghcr.io/ethan-rivas/qanvas:0.2.1
ports:
- "127.0.0.1:8080:8080" # only reachable from your own machine
environment:
QANVAS_BRIDGE_URL: http://lab-bridge:8000 # Qanvas forwards /api/ here
depends_on:
- lab-bridge
# Lets Qanvas save notebooks into notebooks/qanvas/. No published port: only Qanvas reaches it.
lab-bridge:
image: quantum-lab:local
pull_policy: never # the image the notebook service builds
command: ["python", "/opt/quantum-lab/bridge.py"]
volumes:
- ./notebooks:/home/quantum/work
environment:
JUPYTER_TOKEN: ${JUPYTER_TOKEN:-quantum}
BRIDGE_JUPYTER_URL: http://127.0.0.1:8888 # where your browser opens JupyterLab
depends_on:
- notebook