Skip to content

Commit

Permalink
docker-compose: fix postgres url
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Mar 12, 2024
1 parent b24ab76 commit 357d3ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

DB_HOST=postgresql
DB_HOST=postgre
DB_USERNAME=sfscon
DB_PASSWORD=sfscon
DB_NAME=sfscon
Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
services:

redis:
command: redis-server
hostname: redis
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 357d3ea

Please sign in to comment.