Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker-compose.yml #1912

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
57 changes: 57 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,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