chore: Improvements in docker compose

This commit is contained in:
ITQ
2024-05-19 16:19:03 +03:00
parent 77705a5bcf
commit b51c135b14
+4 -1
View File
@@ -4,6 +4,7 @@ services:
postgres:
image: postgres:16.2-alpine
container_name: travel_agent-postgres
restart: unless-stopped
healthcheck:
test: pg_isready -U postgres -h localhost
interval: 5s
@@ -21,6 +22,7 @@ services:
redis:
image: redis:7.2-alpine
container_name: travel_agent-redis
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
ports:
@@ -31,6 +33,7 @@ services:
app:
build: .
container_name: travel_agent-app
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
@@ -48,6 +51,7 @@ services:
pgadmin:
image: dpage/pgadmin4:8.5
container_name: travel_agent-pgadmin
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
@@ -56,7 +60,6 @@ services:
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
ports:
- "${PGADMIN_PORT:-5050}:80"
restart: always
volumes:
- pgadmin_data:/var/lib/pgadmin