From 48d32ac19becc8e043bd546178b2b93cd1dd2a8b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 17 Feb 2026 14:10:28 +0100 Subject: [PATCH] Add drop compose file --- drop/compose.yaml | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 drop/compose.yaml diff --git a/drop/compose.yaml b/drop/compose.yaml new file mode 100644 index 0000000..2a822b5 --- /dev/null +++ b/drop/compose.yaml @@ -0,0 +1,50 @@ +services: + drop: + image: ghcr.io/drop-oss/drop:v0.3.5 + container_name: drop + volumes: + # Config + - $APPDATA/drop/data:/data + # Media + - $MEDIADIR/games/pc:/library + environment: + DATABASE_URL: postgres://${DROP_DB_USER}:${DROP_DB_PASSWORD}@postgres:5432/${DROP_DB} + EXTERNAL_URL: http://${HOST_IP}:3001 # default, customise if accessing from another computer or behind a reverse proxy + ports: + - 3001:3000 + # labels: + # - "traefik.enable=true" + # - "traefik.http.routers.drop.rule=Host(`drop.${LOCAL_DOMAIN}`)" + # - "traefik.http.routers.drop.entrypoints=https" + # - "traefik.http.routers.drop.tls=true" + # - "traefik.http.services.drop.loadbalancer.server.port=3000" + # networks: + # - proxy + depends_on: + postgres: + condition: service_healthy + restart: unless-stopped + + postgres: + image: postgres:14-alpine + container_name: postgres + volumes: + # Config + - $APPDATA/drop/db:/var/lib/postgresql/data + environment: + POSTGRES_DB: $DROP_DB + POSTGRES_USER: $DROP_DB_USER + POSTGRES_PASSWORD: $DROP_DB_PASSWORD + # networks: + # - proxy + healthcheck: + test: pg_isready -d ${DROP_DB} -U ${DROP_DB_USER} + interval: 30s + timeout: 60s + retries: 5 + start_period: 10s + restart: unless-stopped + +# networks: +# proxy: +# external: true \ No newline at end of file