-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.34 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
version: "3.9"
services:
geneweb:
build:
context: ./source_geneweb
dockerfile: docker/Dockerfile
container_name: geneweb
ports:
- "23179:2317" # gwd
- "23176:2316" # gwsetup (optional)
# environment:
# GWSETUP_IP: "0.0.0.0" # allow access from host browser to gwsetup
volumes:
- ./GeneWeb/bases:/usr/local/share/geneweb/share/data
# Note: etc directory is not mounted so launch script can write gwsetup_only dynamically
healthcheck:
test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/2317 && echo -e \"GET /test HTTP/1.0\\r\\n\\r\\n\" >&3 && head -n 1 <&3 | grep -q HTTP' "]
interval: 10s
timeout: 5s
retries: 20
networks:
- geneweb-network
# default docker network (no static IPs)
proxy:
build:
context: .
dockerfile: Dockerfile
container_name: geneweb-proxy
ports:
- "23182:23182"
environment:
BACKEND: "ocaml"
FLASK_HOST: "0.0.0.0"
FLASK_PORT: "23182"
BASE_NAME: "test"
OCAML_GWD_HOST: "geneweb"
OCAML_GWD_PORT: "2317"
OCAML_GWSETUP_PORT: "2316"
OCAML_REMOTE: "true"
depends_on:
geneweb:
condition: service_healthy
# default docker network (no static IPs
networks:
- geneweb-network
networks:
geneweb-network:
driver: bridge