-
-
Notifications
You must be signed in to change notification settings - Fork 394
/
docker-compose.yml
57 lines (53 loc) · 1.5 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
# NB: Always use immutable tags (e.g. not latest etc) on docker refs.
# Any :latest tags on this file will be replaced with athens release version on release.
version: "3.4"
services:
athens:
image: ghcr.io/athensresearch/athens:latest
# Uncomment the build sections if you want docker compose to build them locally.
# build:
# context: .
# dockerfile: athens.dockerfile
restart: always
depends_on:
- fluree
ports:
- 3010:3010 # Change this according to CONFIG_EDN.
volumes:
- ./athens-data/logs:/srv/athens/logs
environment:
# Uses system env vars for settings if available.
# CONFIG_EDN is deep merged with the default config file.
- CONFIG_EDN=${CONFIG_EDN:-{}}
healthcheck:
test: curl -f localhost:3010/health-check
interval: 15s
timeout: 60s
retries: 10
start_period: 15s
nginx:
image: ghcr.io/athensresearch/nginx:latest
# build:
# context: .
# dockerfile: nginx.dockerfile
restart: always
depends_on:
- athens
restart: always
ports:
- 80:80
fluree:
# Under default settings maximum recommended event size is 2mb.
# Can be increased via fdb-memory-reindex-max to up to 10mb.
image: fluree/ledger:1.0
restart: always
ports:
- 8090:8090
volumes:
- ./athens-data/fluree:/var/lib/fluree
healthcheck:
test: curl -f localhost:8090/fdb/health
interval: 15s
timeout: 30s
retries: 3
start_period: 15s