2019-06-23 13:16:45 +02:00
|
|
|
# This is a Docker Compose configuration
|
2019-08-26 23:01:10 +02:00
|
|
|
# intended for development purposes only
|
2019-06-23 13:16:45 +02:00
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mysql:8
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: bookstack-test
|
|
|
|
MYSQL_USER: bookstack-test
|
|
|
|
MYSQL_PASSWORD: bookstack-test
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
app:
|
|
|
|
build:
|
2019-08-26 23:01:10 +02:00
|
|
|
context: .
|
2019-08-12 22:19:58 +02:00
|
|
|
dockerfile: ./dev/docker/Dockerfile
|
2019-08-12 16:59:51 +02:00
|
|
|
environment:
|
|
|
|
DB_CONNECTION: mysql
|
|
|
|
DB_HOST: db
|
|
|
|
DB_PORT: 3306
|
|
|
|
DB_DATABASE: bookstack-test
|
2019-08-12 22:19:58 +02:00
|
|
|
DB_USERNAME: bookstack-test
|
2019-08-12 16:59:51 +02:00
|
|
|
DB_PASSWORD: bookstack-test
|
2019-08-31 19:09:40 +02:00
|
|
|
MAIL_DRIVER: smtp
|
|
|
|
MAIL_HOST: mailhog
|
|
|
|
MAIL_PORT: 1025
|
2019-06-23 13:16:45 +02:00
|
|
|
ports:
|
2019-08-12 22:19:58 +02:00
|
|
|
- ${DEV_PORT:-8080}:80
|
2019-06-23 13:16:45 +02:00
|
|
|
volumes:
|
2019-08-26 23:01:10 +02:00
|
|
|
- ./:/app
|
2019-08-12 22:19:58 +02:00
|
|
|
entrypoint: /app/dev/docker/entrypoint.app.sh
|
2019-06-23 13:16:45 +02:00
|
|
|
node:
|
|
|
|
image: node:alpine
|
|
|
|
working_dir: /app
|
2021-01-26 19:50:48 +01:00
|
|
|
user: node
|
2019-06-23 13:16:45 +02:00
|
|
|
volumes:
|
2019-08-26 23:01:10 +02:00
|
|
|
- ./:/app
|
2019-08-12 22:19:58 +02:00
|
|
|
entrypoint: /app/dev/docker/entrypoint.node.sh
|
2019-08-31 19:09:40 +02:00
|
|
|
mailhog:
|
|
|
|
image: mailhog/mailhog
|
|
|
|
ports:
|
|
|
|
- ${DEV_MAIL_PORT:-8025}:8025
|