fix: rename postgres in docker-compose to avoid namespace collision

fixes: https://github.com/mCaptcha/mCaptcha/issues/31
This commit is contained in:
realaravinth 2022-07-18 22:56:21 +05:30
parent 37004c7b4f
commit c7d1bc3191
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -1,4 +1,4 @@
version: '3.9' version: "3.9"
services: services:
mcaptcha: mcaptcha:
@ -6,11 +6,11 @@ services:
ports: ports:
- 7000:7000 - 7000:7000
environment: environment:
DATABASE_URL: postgres://postgres:password@postgres:5432/postgres # set password at placeholder DATABASE_URL: postgres://postgres:password@mcaptcha_postgres:5432/postgres # set password at placeholder
MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/ MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/
RUST_LOG: debug RUST_LOG: debug
postgres: mcaptcha_postgres:
image: postgres:13.2 image: postgres:13.2
volumes: volumes:
- mcaptcha-data:/var/lib/postgresql/ - mcaptcha-data:/var/lib/postgresql/