fix rocket config and add ./web as a volume in docker-compose.yml

This commit is contained in:
SadlyNotSappho 2023-12-15 09:48:02 -08:00
parent 2b79555032
commit b9bf81a1be
1 changed files with 6 additions and 1 deletions

View File

@ -19,10 +19,15 @@ services:
- PG_HOST=db - PG_HOST=db
- PG_USER=postgres - PG_USER=postgres
- PG_PASSWORD=mysecretpassword - PG_PASSWORD=mysecretpassword
- ADDRESS=0.0.0.0:8000 - ROCKET_ADDRESS=0.0.0.0
- ROCKET_PORT=8000
- RUST_LOG=debug - RUST_LOG=debug
- ROCKET_SECRET_KEY="openssl rand -base64 32" - ROCKET_SECRET_KEY="openssl rand -base64 32"
volumes:
- type: bind
source: ./web
target: /srv/web
# The commented out section below is an example of how to define a PostgreSQL # The commented out section below is an example of how to define a PostgreSQL
# database that your application can use. `depends_on` tells Docker Compose to # database that your application can use. `depends_on` tells Docker Compose to
# start the database before your application. The `db-data` volume persists the # start the database before your application. The `db-data` volume persists the