-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (57 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
59 lines (57 loc) · 1.6 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
54
55
56
57
58
59
services:
# Standard pyOMA2 service with Python shell
pyoma2:
build:
context: .
dockerfile: Dockerfile
image: pyoma2:latest
container_name: pyoma2-app
stdin_open: true
tty: true
environment:
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
volumes:
# Mount X11 socket for GUI support (Linux/macOS with XQuartz)
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# Mount local data directory
- ./data:/app/data:rw
# Mount examples (optional - allows editing examples from host)
- ./Examples:/app/Examples:rw
# network_mode: host # Uncomment for Linux if you have X11 issues
# Jupyter notebook service
jupyter:
build:
context: .
dockerfile: Dockerfile
image: pyoma2:latest
container_name: pyoma2-jupyter
ports:
- "8888:8888"
volumes:
- ./data:/app/data:rw
- ./Examples:/app/Examples:rw
command: >
bash -c "pip install --user jupyter jupyterlab &&
~/.local/bin/jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser --NotebookApp.token='' --NotebookApp.password=''"
environment:
- JUPYTER_ENABLE_LAB=yes
# Development service with mounted source code
dev:
build:
context: .
dockerfile: Dockerfile
image: pyoma2:latest
container_name: pyoma2-dev
stdin_open: true
tty: true
environment:
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./data:/app/data:rw
- ./src:/app/src:rw
- ./tests:/app/tests:rw
- ./Examples:/app/Examples:rw
command: /bin/bash