Raspsnir/docker-compose.yml

37 lines
789 B
YAML
Raw Permalink Normal View History

version: "3.2"
services:
php:
build: './php/'
networks:
- backend
volumes:
- ./public_html/:/var/www/html/
apache:
build: './apache/'
depends_on:
- php
- mysql
networks:
- frontend
- backend
ports:
- 8085:80
volumes:
- ./public_html/:/var/www/html/
mysql:
image: mariadb:10
networks:
- backend
volumes:
- ./db/data:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- MYSQL_USER=root
- MYSQL_DATABASE=raspsnirv2
- MYSQL_ROOT_PASSWORD=aberation
networks:
frontend:
backend: