forum/docker-compose.yml

39 lines
899 B
YAML
Raw Normal View History

2019-06-27 12:03:08 +02:00
version: "3.4"
2017-04-22 20:29:25 +02:00
services:
2019-06-27 12:03:08 +02:00
php:
build:
context: .
2019-12-03 21:00:08 +01:00
target: symfony_php
2017-10-26 14:51:56 +02:00
args:
SYMFONY_VERSION: ${SYMFONY_VERSION:-}
STABILITY: ${STABILITY:-stable}
restart: unless-stopped
2019-12-03 21:00:08 +01:00
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}@db:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-13}
SYMFONY_VERSION:
2017-04-22 20:29:25 +02:00
caddy:
build:
context: .
target: symfony_caddy
environment:
SERVER_NAME: ${SERVER_NAME:-localhost}
restart: unless-stopped
ports:
2019-06-27 12:03:08 +02:00
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config: