-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (71 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
71 lines (71 loc) · 1.49 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
services:
rdfc-pipeline:
container_name: rdfc-pipeline
build: ./pipeline
volumes:
- ./pipeline/state:/rdfc-pipeline/state
restart: always
env_file: .env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- ldes
depends_on:
- redis
redis:
container_name: redis
image: redis/redis-stack-server:latest
volumes:
- ./datastore:/data
ports:
- 6379:6379
restart: always
env_file: .env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- ldes
ldes-server:
container_name: ldes-server
build: ./ldes-server
restart: always
ports:
- 3000:3000
env_file: .env
healthcheck:
# Check if the server is up and running, can return 200 or 500 (outside identifier space, okay here)
test: "wget --server-response --spider --tries=1 http://localhost:3000 2>&1 | grep -E 'HTTP/1.1 (200|500)'"
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- ldes
depends_on:
- redis
varnish:
container_name: varnish
build: ./varnish
ports:
- "8080:80"
tmpfs:
- /var/lib/varnish:exec
env_file: .env
networks:
- ldes
depends_on:
ldes-server:
condition: service_healthy
networks:
ldes: