Add compose.yaml
This commit is contained in:
1 parent
0f93ce377b
commit
6fc14283c4
1 file changed
+47
@@ -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:
|
||||||
Reference in new issue
Block a user