diff --git a/bookstack/docker-compose.yml b/bookstack/docker-compose.yml new file mode 100644 index 0000000..9fd1281 --- /dev/null +++ b/bookstack/docker-compose.yml @@ -0,0 +1,42 @@ +version: '3' +services: + db: + image: mariadb:latest + environment: + - MYSQL_ROOT_PASSWORD=password! + - MYSQL_DATABASE=bookstack + - MYSQL_USER=bookstack + - MYSQL_PASSWORD=password + volumes: + - db:/var/lib/mysql + + bookstack: + image: solidnerd/bookstack:latest + depends_on: + - db + environment: + - DB_HOST=db:3306 + - DB_DATABASE=bookstack + - DB_USERNAME=bookstack + - DB_PASSWORD=password + - APP_URL=https://docs.changeme.com + - APP_KEY=generateanrandom32string + - MAIL_DRIVER=smtp + - MAIL_HOST=mail.changeme.com + - MAIL_PORT=587 + - MAIL_ENCRYPTION=tls + - MAIL_USERNAME=info@changeme.com + - MAIL_PASSWORD=changeme-password + - MAIL_FROM=info@changeme.com + - MAIL_FROM_NAME=docs.changeme.com + - APP_PROXIES=10.101.0.1 # use your reverse proxy ip + volumes: + - uploads:/var/www/bookstack/public/uploads + - storage:/var/www/bookstack/storage/uploads + ports: + - "8080:8080" + +volumes: + db: + uploads: + storage: \ No newline at end of file