m1k1oblog/docker-compose.yml
2019-12-24 00:36:12 +01:00

26 lines
644 B
YAML
Executable file

version: "3"
services:
webserver:
build: ./
container_name: blog_apache
restart: unless-stopped
ports:
- ${HTTP_PORT-80}:80
- ${HTTPS_PORT-443}:443
volumes:
- ${IMAGES-./i}:/var/www/html/i
- ${THUMBS-./t}:/var/www/html/t
- ${DATA-./data}:/var/www/html/data
- ${CONFIG-./config.ini}:/var/www/html/custom.ini
mariadb:
image: mariadb:10.1
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: