h2 and HTTPS support

This commit is contained in:
Kévin Dunglas
2017-10-16 14:46:43 +02:00
parent 313bda6b7a
commit 33daa22c7a
4 changed files with 70 additions and 19 deletions

35
docker-compose.yaml Normal file
View File

@@ -0,0 +1,35 @@
version: '3'
services:
app:
build:
context: .
volumes:
# Comment out the next line in production
- ./:/srv/app:rw
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /srv/app/var/
- /srv/app/var/cache/
- /srv/app/var/logs/
- /srv/app/var/sessions/
nginx:
build:
context: .
dockerfile: ./Dockerfile.nginx
volumes:
# Comment out the next line in production
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ./public:/srv/app/public:ro
ports:
- '80:80'
# 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'