1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 15:29:36 +02:00

Add compose-dev.yml file and update startup.sh script

This commit is contained in:
Sean Morley 2024-04-18 01:24:00 +00:00
parent 2249052ab7
commit 7fe90f615f
2 changed files with 14 additions and 2 deletions

13
compose-dev.yml Normal file
View file

@ -0,0 +1,13 @@
services:
web:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=
# ORIGIN is only necessary when not using a reverse proxy or hosting that includes https
- ORIGIN=http://localhost:3000
- SKIP_DB_WAIT=true
# Only necessary for externaly hosted databases such as NeonDB
volumes:
- ./sql:/sql

View file

@ -29,10 +29,9 @@ run_sql_scripts() {
echo "Starting AdventureLog"
# Wait for the database to start up
if (!$SKIP_DB_WAIT); then
if [ -z "$SKIP_DB_WAIT" ] || [ "$SKIP_DB_WAIT" = "false" ]; then
wait_for_db
fi
wait_for_db
# generate the schema
# npm run generate