mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 11:20:37 +08:00
Alter docker paths
This commit is contained in:
parent
b608bb8859
commit
c6b1f36412
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user