Skip to content

Commit

Permalink
Postgres in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
KrySeyt committed Feb 27, 2024
1 parent 1c67bea commit dc3dab8
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ services:
- ./alembic:/just_chat/alembic
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy

# depends_on:
# postgres:
# condition: service_healthy

# postgres:
# image: postgres:latest
# environment:
# POSTGRES_USER: "postgres"
# POSTGRES_PASSWORD: "postgres"
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
# interval: 1s
# timeout: 1s
# retries: 30
postgres:
image: postgres:latest
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
interval: 1s
timeout: 1s
retries: 5

0 comments on commit dc3dab8

Please sign in to comment.