2019-12-23 23:33:51 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
webserver:
|
2020-06-07 12:17:14 +00:00
|
|
|
image: m1k1o/blog
|
2019-12-23 23:33:51 +00:00
|
|
|
container_name: blog_apache
|
2020-05-26 22:14:17 +00:00
|
|
|
environment:
|
|
|
|
TZ: Europe/Vienna
|
2020-06-11 09:39:21 +00:00
|
|
|
BLOG_DB_CONNECTION: mysql
|
|
|
|
BLOG_MYSQL_HOST: mariadb
|
|
|
|
BLOG_MYSQL_PORT: 3306
|
|
|
|
BLOG_MYSQL_USER: root
|
|
|
|
BLOG_MYSQL_PASS: root
|
|
|
|
BLOG_DB_NAME: blog
|
2019-12-23 23:36:12 +00:00
|
|
|
restart: unless-stopped
|
2019-12-23 23:33:51 +00:00
|
|
|
ports:
|
2019-12-23 23:36:12 +00:00
|
|
|
- ${HTTP_PORT-80}:80
|
2019-12-23 23:33:51 +00:00
|
|
|
volumes:
|
|
|
|
- ${DATA-./data}:/var/www/html/data
|
|
|
|
mariadb:
|
|
|
|
image: mariadb:10.1
|
2020-01-22 20:46:06 +00:00
|
|
|
container_name: blog_mariadb
|
2019-12-23 23:33:51 +00:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: blog
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
2019-12-23 23:36:12 +00:00
|
|
|
restart: unless-stopped
|
2019-12-23 23:33:51 +00:00
|
|
|
volumes:
|
|
|
|
- mariadb:/var/lib/mysql
|
2020-06-10 23:39:56 +00:00
|
|
|
- ./app/db/mysql:/docker-entrypoint-initdb.d:ro
|
2019-12-23 23:33:51 +00:00
|
|
|
volumes:
|
2020-06-11 09:39:21 +00:00
|
|
|
mariadb:
|