fix rocket config and add ./web as a volume in docker-compose.yml
This commit is contained in:
parent
2b79555032
commit
b9bf81a1be
|
@ -19,10 +19,15 @@ services:
|
|||
- PG_HOST=db
|
||||
- PG_USER=postgres
|
||||
- PG_PASSWORD=mysecretpassword
|
||||
- ADDRESS=0.0.0.0:8000
|
||||
- ROCKET_ADDRESS=0.0.0.0
|
||||
- ROCKET_PORT=8000
|
||||
- RUST_LOG=debug
|
||||
|
||||
- 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
|
||||
# database that your application can use. `depends_on` tells Docker Compose to
|
||||
# start the database before your application. The `db-data` volume persists the
|
||||
|
|
Loading…
Reference in New Issue