From b9bf81a1be50e5a8a612a4f11360855ed4845837 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Fri, 15 Dec 2023 09:48:02 -0800 Subject: [PATCH] fix rocket config and add ./web as a volume in docker-compose.yml --- docker-compose.yml.example | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 0cf30b4..6901a01 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -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