Upgrade Dockerfile

This commit is contained in:
Kévin Dunglas
2019-06-27 12:03:08 +02:00
parent f14a977747
commit 1f61df9cf0
8 changed files with 143 additions and 95 deletions

View File

@@ -1,7 +1,7 @@
version: '3.4'
version: "3.4"
services:
app:
php:
build:
context: .
target: symfony_docker_php
@@ -24,13 +24,13 @@ services:
context: .
target: symfony_docker_nginx
depends_on:
- app
- php
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'
- "80:80"
# This HTTP/2 proxy is not secure: it should only be used in dev
h2-proxy:
@@ -42,4 +42,4 @@ services:
volumes:
- ./docker/h2-proxy/default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- '443:443'
- "443:443"