c3lf-system-3/docker-compose.yml
2019-12-22 17:50:58 +01:00

30 lines
939 B
YAML

version: '3.6'
services:
webserver:
image: webdevops/php-nginx-dev
ports:
- "80:80"
volumes:
- ./:/app
- ./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
environment:
WEB_DOCUMENT_ROOT: /app/public
XDEBUG_REMOTE_HOST: marvin
depends_on:
- dbserver
dbserver:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: 'foobar'
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
restart: on-failure
ports:
- "3306:3306"
volumes:
- ./.local/db:/var/lib/mysql
- ./container/db/:/docker-entrypoint-initdb.d