forum/docker-compose.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

version: '3.4'
2017-04-22 20:29:25 +02:00
services:
app:
build:
context: .
target: symfony_docker_php
2017-10-26 14:51:56 +02:00
args:
SYMFONY_VERSION: ${SYMFONY_VERSION:-}
STABILITY: ${STABILITY:-stable}
2017-04-22 20:29:25 +02:00
volumes:
# Comment out the next line in production
- ./:/srv/app:rw,cached
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
2017-07-06 00:28:13 +02:00
- /srv/app/var/
- /srv/app/var/cache/
- /srv/app/var/logs/
- /srv/app/var/sessions/
environment:
- SYMFONY_VERSION
2017-04-22 20:29:25 +02:00
nginx:
build:
context: .
target: symfony_docker_nginx
depends_on:
- app
2017-04-22 20:29:25 +02:00
volumes:
# Comment out the next line in production
2017-04-22 20:29:25 +02:00
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ./public:/srv/app/public:ro
ports:
- '80:80'
2017-10-16 14:46:43 +02:00
# This HTTP/2 proxy is not secure: it should only be used in dev
h2-proxy:
build:
context: .
target: symfony_docker_h2-proxy
2018-10-26 14:00:12 +02:00
depends_on:
- nginx
2017-10-16 14:46:43 +02:00
volumes:
2018-06-21 23:20:17 +02:00
- ./docker/h2-proxy/default.conf:/etc/nginx/conf.d/default.conf:ro
2017-10-16 14:46:43 +02:00
ports:
- '443:443'