You've already forked Travel-Agent
chore: Improvements in docker compose
This commit is contained in:
+4
-1
@@ -4,6 +4,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:16.2-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: travel_agent-postgres
|
container_name: travel_agent-postgres
|
||||||
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -U postgres -h localhost
|
test: pg_isready -U postgres -h localhost
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -21,6 +22,7 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:7.2-alpine
|
image: redis:7.2-alpine
|
||||||
container_name: travel_agent-redis
|
container_name: travel_agent-redis
|
||||||
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
|
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
|
||||||
ports:
|
ports:
|
||||||
@@ -31,6 +33,7 @@ services:
|
|||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
container_name: travel_agent-app
|
container_name: travel_agent-app
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -48,6 +51,7 @@ services:
|
|||||||
pgadmin:
|
pgadmin:
|
||||||
image: dpage/pgadmin4:8.5
|
image: dpage/pgadmin4:8.5
|
||||||
container_name: travel_agent-pgadmin
|
container_name: travel_agent-pgadmin
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -56,7 +60,6 @@ services:
|
|||||||
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
|
||||||
ports:
|
ports:
|
||||||
- "${PGADMIN_PORT:-5050}:80"
|
- "${PGADMIN_PORT:-5050}:80"
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- pgadmin_data:/var/lib/pgadmin
|
- pgadmin_data:/var/lib/pgadmin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user