Add drop compose file
This commit is contained in:
parent
c5d2588da6
commit
48d32ac19b
50
drop/compose.yaml
Normal file
50
drop/compose.yaml
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue