-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (96 loc) · 2.41 KB
/
docker-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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
db:
build:
context: .
dockerfile: docker/db.Dockerfile
entrypoint: ["/bin/sh", "-c", "./scripts/db_start.sh"]
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
network_mode: host
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 10s
retries: 100
fuseki:
image: stain/jena-fuseki:jena4
environment:
ADMIN_PASSWORD: fuseki
FUSEKI_DATASET_1: resources
network_mode: host
expose:
- 3030
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:3030 || exit 1"]
interval: 1s
timeout: 10s
retries: 100
ipfs:
image: ipfs/kubo
environment:
IPFS_PROFILE: server
network_mode: host
expose:
- 8080
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:8080 || exit 1"]
interval: 1s
timeout: 10s
retries: 100
chora:
build:
context: .
dockerfile: docker/chora.Dockerfile
entrypoint: ["/bin/sh", "-c", "./scripts/chora_start.sh"]
network_mode: host
expose:
- 1317
- 26657
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:26657 || exit 1"]
interval: 1s
timeout: 10s
retries: 100
api:
build:
context: .
dockerfile: docker/api.Dockerfile
environment:
DATABASE_URL: "postgres://postgres:password@localhost:5432/server?sslmode=disable"
# sleep for 5 seconds to prevent error when api and idx initialize database at same time
entrypoint: [ "/bin/sh", "-c", "sleep 5 && api" ]
network_mode: host
expose:
- 3000
depends_on:
db:
condition: service_healthy
idx:
build:
context: .
dockerfile: docker/idx.Dockerfile
environment:
DATABASE_URL: "postgres://postgres:password@localhost:5432/server?sslmode=disable"
entrypoint: [ "/bin/sh", "-c", "idx localhost:9090 chora-local" ]
network_mode: host
depends_on:
db:
condition: service_healthy
chora:
condition: service_healthy
tester:
build:
context: .
dockerfile: docker/tester.Dockerfile
entrypoint: ["/bin/sh", "-c", "./scripts/tester_start.sh"]
network_mode: host
depends_on:
db:
condition: service_healthy
chora:
condition: service_healthy
idx:
condition: service_started