39 lines
905 B
YAML
39 lines
905 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:
|
|
# Run "composer require symfony/orm-pack" to install and configure Doctrine ORM
|
|
DATABASE_URL: postgresql://${POSTGRES_USER:-symfony}:${POSTGRES_PASSWORD:-ChangeMe}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-13}
|
|
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:
|