-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
77 lines (74 loc) · 2.36 KB
/
stack.yml
File metadata and controls
77 lines (74 loc) · 2.36 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
73
74
75
76
77
version: "3.8"
networks:
core:
external: true
internal:
driver: overlay
services:
dashboard:
image: aopwiki-dashboard:latest
networks:
- core
- internal
environment:
- SPARQL_ENDPOINT=http://virtuoso:8890/sparql
deploy:
placement:
constraints:
- node.hostname==h3068544.stratoserver.net
restart_policy:
condition: on-failure
labels:
- traefik.enable=true
- traefik.http.routers.aopwiki-dashboard.rule=Host(`aopwiki-dashboard.vhp4safety.nl`)
- traefik.http.routers.aopwiki-dashboard.entrypoints=websecure
- traefik.http.routers.aopwiki-dashboard.tls=true
- traefik.http.routers.aopwiki-dashboard.tls.certresolver=letsencrypt
- traefik.http.services.aopwiki-dashboard.loadbalancer.server.port=5000
- traefik.docker.network=core
resources:
limits:
memory: 2G
reservations:
memory: 512M
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:5000/health')\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
virtuoso:
image: openlink/virtuoso-opensource-7
networks:
- core
- internal
environment:
- DBA_PASSWORD=${DBA_PASSWORD}
- VIRT_Parameters_DirsAllowed=., ../vad, /usr/share/proj, /database/data
volumes:
- /mnt/gluster/docker/aopwiki-dashboard/virtuoso-data:/database/data
deploy:
placement:
constraints:
- node.hostname==h3068544.stratoserver.net
restart_policy:
condition: on-failure
labels:
- traefik.enable=true
- traefik.http.routers.aopwiki-multirdf.rule=Host(`aopwiki-multirdf.vhp4safety.nl`)
- traefik.http.routers.aopwiki-multirdf.entrypoints=websecure
- traefik.http.routers.aopwiki-multirdf.tls=true
- traefik.http.routers.aopwiki-multirdf.tls.certresolver=letsencrypt
- traefik.http.services.aopwiki-multirdf.loadbalancer.server.port=8890
- traefik.docker.network=core
resources:
limits:
memory: 4G
reservations:
memory: 2G
healthcheck:
test: ["CMD-SHELL", "wget -qO- 'http://localhost:8890/sparql?query=ASK+%7B%7D' || exit 1"]
interval: 15s
timeout: 5s
retries: 20
start_period: 60s