forum/docker-compose.yml
Kévin Dunglas cc03d09fa6
feat: Use Caddy server (#75)
* feat: Use Caddy server

* cs
2020-10-19 15:30:43 +02:00

37 lines
657 B
YAML

version: "3.4"
services:
php:
build:
context: .
target: symfony_php
args:
SYMFONY_VERSION: ${SYMFONY_VERSION:-}
STABILITY: ${STABILITY:-stable}
restart: unless-stopped
healthcheck:
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
environment:
SYMFONY_VERSION:
caddy:
build:
context: .
target: symfony_caddy
environment:
SERVER_NAME: ${SERVER_NAME:-localhost}
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config: