feat: Use Caddy server (#75)

* feat: Use Caddy server

* cs
This commit is contained in:
Kévin Dunglas
2020-10-19 15:30:43 +02:00
committed by GitHub
parent 087d65f032
commit cc03d09fa6
7 changed files with 44 additions and 119 deletions

View File

@@ -8,7 +8,7 @@ services:
args:
SYMFONY_VERSION: ${SYMFONY_VERSION:-}
STABILITY: ${STABILITY:-stable}
SERVER_NAME: ${SERVER_NAME:-localhost}
restart: unless-stopped
healthcheck:
interval: 10s
timeout: 3s
@@ -17,11 +17,20 @@ services:
environment:
SYMFONY_VERSION:
nginx:
caddy:
build:
context: .
target: symfony_nginx
depends_on:
- php
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: