Alter docker paths

This commit is contained in:
Timo Schwarzer 2019-08-12 22:19:58 +02:00
parent b608bb8859
commit c6b1f36412
No known key found for this signature in database
GPG Key ID: C4062DA320280737
4 changed files with 12 additions and 10 deletions

View File

@ -19,23 +19,23 @@ services:
- db:/var/lib/mysql - db:/var/lib/mysql
app: app:
build: build:
context: . context: ..
dockerfile: docker/dev/Dockerfile dockerfile: ./dev/docker/Dockerfile
environment: environment:
DB_CONNECTION: mysql DB_CONNECTION: mysql
DB_HOST: db DB_HOST: db
DB_PORT: 3306 DB_PORT: 3306
DB_DATABASE: bookstack-test DB_DATABASE: bookstack-test
DB_USER: bookstack-test DB_USERNAME: bookstack-test
DB_PASSWORD: bookstack-test DB_PASSWORD: bookstack-test
ports: ports:
- ${DEV_PORT}:80 - ${DEV_PORT:-8080}:80
volumes: volumes:
- ./:/app - ../:/app
entrypoint: /app/docker/dev/entrypoint.app.sh entrypoint: /app/dev/docker/entrypoint.app.sh
node: node:
image: node:alpine image: node:alpine
working_dir: /app working_dir: /app
volumes: volumes:
- ./:/app - ../:/app
entrypoint: /app/docker/dev/entrypoint.node.sh entrypoint: /app/dev/docker/entrypoint.node.sh

View File

@ -2,11 +2,13 @@
set -e set -e
if [[ "$1" == "composer" ]]; then env
if [[ -n "$1" ]]; then
exec "$@" exec "$@"
else else
wait-for-it db:3306 -t 45 wait-for-it db:3306 -t 45
php artisan migrate --database=mysql_docker_dev php artisan migrate --database=mysql
chown -R www-data:www-data storage chown -R www-data:www-data storage
exec apache2-foreground exec apache2-foreground
fi fi