Files
ltbxd-actorle/docker-compose.yaml
thibaud-leclere 3c15c12255 update theme
2026-03-30 12:13:19 +02:00

45 lines
1.1 KiB
YAML

services:
app:
build:
context: .
dockerfile: docker/app/Dockerfile
target: prod
additional_contexts:
node-build: docker/node
image: git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:latest
ports:
- "${PORT_80:-80}:80"
- "${PORT_443:-443}:443"
- "${PORT_443:-443}:443/udp"
volumes:
- caddy_data:/data
- caddy_config:/config
depends_on:
database:
condition: service_healthy
messenger:
image: git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:latest
command: ["php", "bin/console", "messenger:consume", "async", "--time-limit=3600", "--memory-limit=256M", "-vv"]
restart: unless-stopped
depends_on:
database:
condition: service_healthy
database:
build:
context: docker/database
image: git.lclr.dev/thibaud-lclr/ltbxd-actorle/database:latest
healthcheck:
test: ["CMD", "pg_isready", "-d", "app", "-U", "app"]
timeout: 5s
retries: 5
start_period: 60s
volumes:
- database_data:/var/lib/postgresql/data:rw
volumes:
database_data:
caddy_data:
caddy_config: