You've already forked Travel-Agent
chore: Improvements in docker compose
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user