version: '3.4'
services:
nginx:
container_name: stream-demo-nginx
build:
context: .
dockerfile: tools/docker/nginx/Dockerfile
volumes:
- ./web:/srv/app/web
depends_on:
- mysql
- php
labels:
- "traefik.docker.network=traefik"
- "traefik.http.routers.stream-demo.rule=Host(`stream-demo.docker.localhost`)"
networks:
- traefik
- internal
php:
image: stream-demo-php
container_name: stream-demo-php
dockerfile: tools/docker/php/Dockerfile
- .:/srv/app
env_file:
- .env
environment:
- DRUSH_OPTIONS_URI
links:
mysql:
container_name: stream-demo-mysql
image: mariadb:10
- .docker.env
- mysql:/var/lib/mysql
composer:
container_name: stream-demo-composer
dockerfile: tools/docker/composer/Dockerfile
- .:/app
- ~/.composer:/root/.composer
- ~/.ssh:/root/.ssh
COMPOSER_MEMORY_LIMIT: -1
traefik:
external: true
internal:
driver: local