version: "3" services: db: image: docker.io/postgres:15.2-alpine restart: always environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - db:/var/lib/postgresql/data fiddle: image: git.dergrimm.net/dergrimm/fiddle:latest build: . restart: always environment: FIDDLE_DB_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_USER} FIDDLE_DATA_DIR: /data FIDDLE_AUTO_PRUNE_SLEEP: 1800 FIDDLE_TAMPER_SLEEP: 10 volumes: - fiddle:/data ports: - 80:80 depends_on: - db volumes: db: fiddle: