mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-26 00:09:38 +02:00
Add compose-dev.yml file and update startup.sh script
This commit is contained in:
parent
2249052ab7
commit
7fe90f615f
2 changed files with 14 additions and 2 deletions
13
compose-dev.yml
Normal file
13
compose-dev.yml
Normal 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
|
|
@ -29,10 +29,9 @@ run_sql_scripts() {
|
||||||
echo "Starting AdventureLog"
|
echo "Starting AdventureLog"
|
||||||
|
|
||||||
# Wait for the database to start up
|
# 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
|
wait_for_db
|
||||||
fi
|
fi
|
||||||
wait_for_db
|
|
||||||
|
|
||||||
# generate the schema
|
# generate the schema
|
||||||
# npm run generate
|
# npm run generate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue