chore: add blog site to docker-compose

This commit is contained in:
Oliver Booth 2023-08-12 20:45:09 +01:00
parent aca79b0e69
commit 43f0b38fd2
Signed by: oliverbooth
GPG Key ID: B89D139977693FED

View File

@ -17,3 +17,21 @@ services:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
oliverbooth-blog:
container_name: blog.oliverbooth.dev
pull_policy: build
build: .
volumes:
- type: bind
source: /var/log/oliverbooth-blog/site
target: /app/logs
- type: bind
source: /etc/oliverbooth-blog/site
target: /app/data
restart: always
environment:
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}