diff --git a/README.md b/README.md index 28b7d72e..99db8e02 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ After the containers are up, visit [http://localhost:7000](http://localhost:7000 It takes a while to build the image so please be patient :) -See [DEPLOYMENT.md](./docs/DEPLOYMET.md) detailed alternate deployment +See [DEPLOYMENT.md](./docs/DEPLOYMENT.md) detailed alternate deployment methods. ## Development: @@ -124,7 +124,7 @@ See [HACKING.md](./docs/HACKING.md) ## Deployment: -See [DEPLOYMENT.md](./docs/DEPLOYMET.md) +See [DEPLOYMENT.md](./docs/DEPLOYMENT.md) ## Configuration: diff --git a/docker-compose.yml b/docker-compose.yml index f843e608..d64403cc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,10 @@ services: DATABASE_URL: postgres://postgres:password@mcaptcha_postgres:5432/postgres # set password at placeholder MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/ RUST_LOG: debug + PORT: 7000 + depends_on: + mcaptcha-postgres + mcaptcha-redis mcaptcha_postgres: image: postgres:13.2 diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 754c8154..0013d934 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -34,14 +34,14 @@ docker run -p : \ If you don't have a Postgres instance running, you can either install one using a package manager or launch one with docker. A [docker-compose -configuration]('../docker-compose.yml) is available that will launch both +configuration](../docker-compose.yml) is available that will launch both a database instance mcaptcha instance. ## With docker-compose 1. Follow steps above to build docker image. -2. Set database password [docker-compose configuration]('../docker-compose.yml). +2. Set database password [docker-compose configuration](../docker-compose.yml). 3. Launch network: