forked from PEM-Humboldt/biab-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
executable file
·69 lines (64 loc) · 1.94 KB
/
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
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
## Base compose file. Automatically merged with compose.override.yml when running
## docker compose up
version: "3.7"
services:
# This can be accessed within the docker network with http://biab-script-server:8081/script/...
script-server:
container_name: biab-script-server
volumes:
- ./scripts:/scripts:ro
- ./pipelines:/pipelines:ro
- ./output:/output:rw
- /var/run/docker.sock:/var/run/docker.sock
expose:
- '8080'
environment:
- SCRIPT_LOCATION=/scripts
- PIPELINES_LOCATION=/pipelines
- OUTPUT_LOCATION=/output
- HOST_PATH=${PWD}
depends_on:
- runner-r
- runner-julia
runner-r:
container_name: biab-runner-r
image: geobon/bon-in-a-box:runner-r
# build:
# context: ./runners
# dockerfile: r-dockerfile
command: sh # Override default command to avoid launching R-studio server.
tty: true # Needed to keep the container alive, waiting for requests.
volumes:
- ./scripts:/scripts:ro
- ./output:/output:rw
environment:
- SCRIPT_LOCATION=/scripts
- OUTPUT_LOCATION=/output
- JUPYTERHUB_API_TOKEN=${JUPYTERHUB_API_TOKEN}
- GBIF_USER=${GBIF_USER}
- GBIF_PWD=${GBIF_PWD}
- GBIF_EMAIL=${GBIF_EMAIL}
runner-julia:
container_name: biab-runner-julia
image: geobon/bon-in-a-box:runner-julia
# build:
# context: ./runners
# dockerfile: julia-dockerfile
command: sh # Avoids launching julia session that will not be used.
tty: true # Needed to keep the container alive, waiting for requests.
volumes:
- ./scripts:/scripts:ro
- ./output:/output:rw
environment:
- SCRIPT_LOCATION=/scripts
- OUTPUT_LOCATION=/output
http-gateway:
container_name: http-rev-prox
image: nginx
ports:
- '80:80'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./output:/static/output:ro
depends_on:
- script-server