From 6fc14283c43bc120e68cbab4a79f91cdaea21cce Mon Sep 17 00:00:00 2001 From: miko Date: Wed, 11 Nov 2026 17:35:13 +0000 Subject: [PATCH] Add compose.yaml --- compose.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 compose.yaml diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..4341e0e --- /dev/null +++ b/compose.yaml @@ -0,0 +1,47 @@ +# tirreno with PostgreSQL +# +# Signup via http://localhost:8585/signup + +services: + tirreno-app: + image: tirreno/tirreno:latest + pull_policy: always + ports: + - "8585:80" + environment: + DATABASE_URL: "postgres://tirreno:secret@tirreno-db:5432/tirreno" + SITE: "localhost:8585" + FORCE_HTTPS: "false" + volumes: + - tirreno-config:/var/www/html/config/local + - tirreno-logs:/var/www/html/assets/logs + networks: + - tirreno-network + depends_on: + tirreno-db: + condition: service_healthy + + tirreno-db: + image: postgres:15 + environment: + POSTGRES_DB: tirreno + POSTGRES_USER: tirreno + POSTGRES_PASSWORD: secret + volumes: + - tirreno-db:/var/lib/postgresql/data + networks: + - tirreno-network + healthcheck: + test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""] + interval: 2s + timeout: 3s + retries: 10 + start_period: 30s + +networks: + tirreno-network: + +volumes: + tirreno-config: + tirreno-logs: + tirreno-db: \ No newline at end of file