-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·36 lines (36 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
executable file
·36 lines (36 loc) · 1.21 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
services:
sarpyx:
build:
context: .
dockerfile: Dockerfile
image: sirbastiano94/sarpyx:latest
container_name: sarpyx
ports:
- "127.0.0.1:8888:8888"
volumes:
- ./data:/workspace/data
- ./output:/workspace/output
# Optional: mount a directory containing one or more *.geojson grids
# - ./grid:/workspace/grid
- ./notebooks:/workspace/notebooks
- ./src:/workspace/src
- ./examples:/workspace/examples
working_dir: /workspace
environment:
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- LD_LIBRARY_PATH=.:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/
- LC_ALL=en_US.UTF-8
- PATH=/workspace/snap12/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Optional: set GRID_PATH to select a specific mounted *.geojson
# - GRID_PATH=/workspace/grid/my_region.geojson
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=
- JUPYTER_ALLOW_INSECURE_WRITES=1
command: /usr/local/bin/start-jupyter.sh
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/lab"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s