feat: add docker-compose

This commit is contained in:
Oliver Booth 2023-08-04 01:30:13 +01:00
parent 710d555c1c
commit de2aacb248
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: '3.9'
services:
oliverbooth:
container_name: oliverbooth.dev
pull_policy: build
build: .
volumes:
- type: bind
source: /var/log/oliverbooth/site
target: /app/logs
- type: bind
source: /etc/oliverbooth/site
target: /app/data
restart: always
environment:
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}