2019-12-17 00:33:40 +00:00
|
|
|
version: '3.6'
|
|
|
|
services:
|
|
|
|
webserver:
|
|
|
|
image: webdevops/php-nginx-dev
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/app
|
2019-12-17 13:10:46 +00:00
|
|
|
- ./container/web/init.sh:/entrypoint.d/09-init.sh
|
|
|
|
- ./container/web/location-root.conf:/opt/docker/etc/nginx/vhost.common.d/10-location-root.conf
|
|
|
|
- ./container/web/general.conf:/opt/docker/etc/nginx/vhost.common.d/10-general.conf
|
|
|
|
- ./container/web/images.conf:/opt/docker/etc/nginx/vhost.common.d/20-images.conf
|
2019-12-17 00:33:40 +00:00
|
|
|
environment:
|
|
|
|
WEB_DOCUMENT_ROOT: /app/public
|
|
|
|
XDEBUG_REMOTE_HOST: marvin
|
|
|
|
links:
|
|
|
|
- dbserver
|
|
|
|
depends_on:
|
|
|
|
- dbserver
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
restart: on-failure
|
|
|
|
dbserver:
|
|
|
|
image: mariadb:latest
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: 'foobar'
|
|
|
|
MYSQL_DATABASE: ${DB_DATABASE}
|
|
|
|
MYSQL_USER: ${DB_USERNAME}
|
|
|
|
MYSQL_PASSWORD: ${DB_PASSWORD}
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
restart: on-failure
|
|
|
|
ports:
|
2019-12-17 13:10:46 +00:00
|
|
|
- "3306:3306"
|
2019-12-17 00:33:40 +00:00
|
|
|
volumes:
|
|
|
|
- ./.local/db:/var/lib/mysql
|
|
|
|
- ./container/db/:/docker-entrypoint-initdb.d
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
driver: bridge
|