Last active
June 10, 2025 13:31
-
-
Save dennisvang/f8f2f78bdacc7e8924cb22ceff1fb481 to your computer and use it in GitHub Desktop.
Minimal Docker compose file for FDP 1.17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
note
localhost
in the healthcheck is that of the docker container, not the docker host