Skip to content

Instantly share code, notes, and snippets.

@dennisvang
Last active June 10, 2025 13:31
Show Gist options
  • Save dennisvang/f8f2f78bdacc7e8924cb22ceff1fb481 to your computer and use it in GitHub Desktop.
Save dennisvang/f8f2f78bdacc7e8924cb22ceff1fb481 to your computer and use it in GitHub Desktop.
Minimal Docker compose file for FDP 1.17
name: fdp117
services:
mongo:
image: "mongo:${MONGO_VERSION:-8.0}"
healthcheck:
test: |
[ $(mongosh --quiet --host localhost:27017 --eval "db.runCommand('ping').ok") = 1 ] || exit 1
start_interval: 3s
start_period: 30s
fdp:
image: "fairdata/fairdatapoint:${FDP_VERSION:-1.17}"
environment:
SERVER_PORT: 8080
INSTANCE_CLIENTURL: http://localhost
INSTANCE_PERSISTENTURL: http://localhost
depends_on:
mongo:
condition: service_healthy
healthcheck:
test: wget -q --spider http://localhost:8080 || exit 1
start_interval: 3s
start_period: 30s
fdp-client:
image: "fairdata/fairdatapoint-client:${FDP_CLIENT_VERSION:-1.17}"
ports:
- "127.0.0.1:80:80"
environment:
- FDP_HOST=fdp:8080
depends_on:
fdp:
condition: service_healthy
@dennisvang
Copy link
Author

note localhost in the healthcheck is that of the docker container, not the docker host

@dennisvang
Copy link
Author

dennisvang commented Jun 10, 2025

Docker image versions can be overridden by exporting one or more environment variables: FDP_VERSION, FDP_CLIENT_VERSION, and/or MONGO_VERSION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment