m1k1oblog/docker-compose.yml
Miroslav Šedivý 4419456a1d ignore HTTPS
2020-01-22 21:46:06 +01:00

24 lines
543 B
YAML

version: "3"
services:
webserver:
build: ./
container_name: blog_apache
restart: unless-stopped
ports:
- ${HTTP_PORT-80}:80
- ${HTTPS_PORT-443}:443
volumes:
- ${DATA-./data}:/var/www/html/data
mariadb:
image: mariadb:10.1
container_name: blog_mariadb
environment:
MYSQL_DATABASE: blog
MYSQL_ROOT_PASSWORD: root
restart: unless-stopped
volumes:
- mariadb:/var/lib/mysql
- ./app/db:/docker-entrypoint-initdb.d:ro
volumes:
mariadb: