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

32 lines
656 B
YAML
Raw Normal View History

2023-06-02 14:27:39 +00:00
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:
2023-06-02 14:31:37 +00:00
- 80:80
2023-06-02 14:27:39 +00:00
depends_on:
- db
volumes:
db:
fiddle: