2017-04-22 20:29:25 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2017-06-12 10:21:33 +02:00
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
2017-10-26 14:51:56 +02:00
|
|
|
args:
|
|
|
|
VERSION: ${SYMFONY_VERSION}
|
|
|
|
STABILITY: stable
|
2017-04-22 20:29:25 +02:00
|
|
|
volumes:
|
2017-06-12 10:21:33 +02:00
|
|
|
# Comment out the next line in production
|
2017-07-06 00:28:13 +02:00
|
|
|
- ./:/srv/app:rw
|
2017-06-12 10:21:33 +02:00
|
|
|
# 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/
|
2017-04-22 20:29:25 +02:00
|
|
|
|
|
|
|
nginx:
|
2017-06-12 10:21:33 +02:00
|
|
|
build:
|
2017-07-06 00:28:13 +02:00
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile.nginx
|
2017-10-19 22:22:03 +02:00
|
|
|
depends_on:
|
|
|
|
- app
|
2017-04-22 20:29:25 +02:00
|
|
|
volumes:
|
2017-06-12 10:21:33 +02:00
|
|
|
# Comment out the next line in production
|
2017-04-22 20:29:25 +02:00
|
|
|
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
|
2017-07-06 00:28:13 +02:00
|
|
|
- ./public:/srv/app/public:ro
|
2017-06-12 10:21:33 +02:00
|
|
|
ports:
|
2017-07-06 00:28:13 +02:00
|
|
|
- '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: .
|
|
|
|
dockerfile: ./Dockerfile.h2-proxy
|
|
|
|
volumes:
|
|
|
|
- ./docker/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
|
|
|
|
ports:
|
|
|
|
- '443:443'
|