2019-06-23 07:16:45 -04:00
|
|
|
# This is a Docker Compose configuration
|
2019-08-26 17:01:10 -04:00
|
|
|
# intended for development purposes only
|
2019-06-23 07:16:45 -04:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2024-07-17 06:13:39 -04:00
|
|
|
image: mysql:8.4
|
2019-06-23 07:16:45 -04:00
|
|
|
environment:
|
2021-01-26 16:38:28 -05:00
|
|
|
MYSQL_DATABASE: bookstack-dev
|
2019-06-23 07:16:45 -04:00
|
|
|
MYSQL_USER: bookstack-test
|
|
|
|
MYSQL_PASSWORD: bookstack-test
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
|
|
|
volumes:
|
2021-01-26 16:38:28 -05:00
|
|
|
- ./dev/docker/init.db:/docker-entrypoint-initdb.d
|
2019-06-23 07:16:45 -04:00
|
|
|
- db:/var/lib/mysql
|
|
|
|
app:
|
|
|
|
build:
|
2019-08-26 17:01:10 -04:00
|
|
|
context: .
|
2019-08-12 16:19:58 -04:00
|
|
|
dockerfile: ./dev/docker/Dockerfile
|
2019-08-12 10:59:51 -04:00
|
|
|
environment:
|
2021-03-21 13:42:10 -04:00
|
|
|
APP_URL: http://localhost:${DEV_PORT:-8080}
|
2019-08-12 10:59:51 -04:00
|
|
|
DB_CONNECTION: mysql
|
|
|
|
DB_HOST: db
|
|
|
|
DB_PORT: 3306
|
2021-01-26 16:38:28 -05:00
|
|
|
DB_DATABASE: bookstack-dev
|
2019-08-12 16:19:58 -04:00
|
|
|
DB_USERNAME: bookstack-test
|
2019-08-12 10:59:51 -04:00
|
|
|
DB_PASSWORD: bookstack-test
|
2021-03-21 13:42:10 -04:00
|
|
|
TEST_DATABASE_URL: mysql://bookstack-test:bookstack-test@db/bookstack-test
|
2019-08-31 13:09:40 -04:00
|
|
|
MAIL_DRIVER: smtp
|
|
|
|
MAIL_HOST: mailhog
|
|
|
|
MAIL_PORT: 1025
|
2019-06-23 07:16:45 -04:00
|
|
|
ports:
|
2019-08-12 16:19:58 -04:00
|
|
|
- ${DEV_PORT:-8080}:80
|
2019-06-23 07:16:45 -04:00
|
|
|
volumes:
|
2019-08-26 17:01:10 -04:00
|
|
|
- ./:/app
|
2022-01-22 11:37:06 -05:00
|
|
|
- ./dev/docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
2019-08-12 16:19:58 -04:00
|
|
|
entrypoint: /app/dev/docker/entrypoint.app.sh
|
2022-01-22 11:37:06 -05:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2019-06-23 07:16:45 -04:00
|
|
|
node:
|
2024-07-17 06:13:39 -04:00
|
|
|
image: node:22-alpine
|
2019-06-23 07:16:45 -04:00
|
|
|
working_dir: /app
|
2021-01-26 13:50:48 -05:00
|
|
|
user: node
|
2019-06-23 07:16:45 -04:00
|
|
|
volumes:
|
2019-08-26 17:01:10 -04:00
|
|
|
- ./:/app
|
2019-08-12 16:19:58 -04:00
|
|
|
entrypoint: /app/dev/docker/entrypoint.node.sh
|
2019-08-31 13:09:40 -04:00
|
|
|
mailhog:
|
|
|
|
image: mailhog/mailhog
|
|
|
|
ports:
|
|
|
|
- ${DEV_MAIL_PORT:-8025}:8025
|