-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.59 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
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.8'
services:
# SciGo Quick Start Demo
scigo-demo:
build:
context: .
dockerfile: Dockerfile
image: scigo:latest
container_name: scigo-demo
restart: "no"
environment:
- SCIGO_LOG_LEVEL=info
volumes:
# Optional: Mount local directory for development
- ./examples:/home/scigouser/local-examples:ro
stdin_open: true
tty: true
command: ["scigo-demo", "all"]
# Development environment
scigo-dev:
build:
context: .
dockerfile: Dockerfile
target: builder
image: scigo:dev
container_name: scigo-dev
restart: "no"
working_dir: /app
volumes:
- .:/app
- go-mod-cache:/go/pkg/mod
environment:
- CGO_ENABLED=0
- GOOS=linux
stdin_open: true
tty: true
command: ["sh"]
# Documentation server (Hugo)
scigo-docs:
image: klakegg/hugo:0.111.3-ext-alpine
container_name: scigo-docs
restart: "no"
ports:
- "1313:1313"
volumes:
- ./docs/hugo-site:/src
working_dir: /src
command: ["server", "--bind=0.0.0.0", "--buildDrafts", "--buildFuture"]
# Jupyter notebook for Python comparison (optional)
jupyter-comparison:
image: jupyter/scipy-notebook:latest
container_name: scigo-jupyter
restart: "no"
ports:
- "8888:8888"
volumes:
- ./examples/sklearn:/home/jovyan/work
environment:
- JUPYTER_ENABLE_LAB=yes
command: ["start-notebook.sh", "--NotebookApp.token=''", "--NotebookApp.password=''"]
volumes:
go-mod-cache:
driver: local
networks:
default:
name: scigo-network