From 357d3ea2d9ff355f446b4d8c6e20b851af115d54 Mon Sep 17 00:00:00 2001 From: Simon Dalvai Date: Tue, 12 Mar 2024 14:38:23 +0100 Subject: [PATCH] docker-compose: fix postgres url --- .env.example | 2 +- docker-compose.yaml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index fc61d8a..27c8d23 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ -DB_HOST=postgresql +DB_HOST=postgre DB_USERNAME=sfscon DB_PASSWORD=sfscon DB_NAME=sfscon diff --git a/docker-compose.yaml b/docker-compose.yaml index 26885d8..79152f4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,4 @@ services: - redis: command: redis-server hostname: redis @@ -14,6 +13,7 @@ services: command: uvicorn main:app --host 0.0.0.0 --reload # sleep 9999999999 depends_on: - redis + - postgres env_file: - .env volumes: @@ -28,11 +28,11 @@ services: build: context: . dockerfile: ../infrastructure/docker/Dockerfile.telegram - command: python workers/telegram.py # sleep 99999 depends_on: - redis - conferences + - postgres env_file: - .env volumes: @@ -45,11 +45,11 @@ services: build: context: . dockerfile: ../infrastructure/docker/Dockerfile.push_notifications - command: python workers/push_notifications.py # sleep 99999 depends_on: - redis - conferences + - postgres env_file: - .env volumes: @@ -62,6 +62,7 @@ services: POSTGRES_DB: sfscon POSTGRES_USER: sfscon POSTGRES_PASSWORD: sfscon + POSTGRES_PORT: 5432 hostname: postgres volumes: - /tmp/epaper_pgdata:/var/lib/postgresql/data