This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
fiddle/docker-compose.yml
2023-06-02 16:31:37 +02:00

31 lines
656 B
YAML

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: