Merge pull request #33 from maxhelias/fix-dc

Fix docker-compose after all dockerfile in one
This commit is contained in:
Kévin Dunglas 2018-08-25 23:46:35 +02:00 committed by GitHub
commit 76aaa44293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
version: '3' version: '3.4'
services: services:
app: app:
build: build:
context: . context: .
target: symfony_docker_php
args: args:
SYMFONY_VERSION: ${SYMFONY_VERSION} SYMFONY_VERSION: ${SYMFONY_VERSION}
STABILITY: ${STABILITY} STABILITY: ${STABILITY}
@ -21,7 +22,7 @@ services:
nginx: nginx:
build: build:
context: . context: .
dockerfile: ./Dockerfile.nginx target: symfony_docker_nginx
depends_on: depends_on:
- app - app
volumes: volumes:
@ -35,7 +36,7 @@ services:
h2-proxy: h2-proxy:
build: build:
context: . context: .
dockerfile: ./Dockerfile.h2-proxy target: symfony_docker_h2-proxy
volumes: volumes:
- ./docker/h2-proxy/default.conf:/etc/nginx/conf.d/default.conf:ro - ./docker/h2-proxy/default.conf:/etc/nginx/conf.d/default.conf:ro
ports: ports: