chore: drop host port publishing, reach services by container name only
This commit is contained in:
@@ -10,8 +10,6 @@ services:
|
||||
POSTGRES_DB: ${DB_NAME:-dating_app}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "${DB_PORT:-5432}:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres} -d ${DB_NAME:-dating_app}"]
|
||||
interval: 5s
|
||||
@@ -32,8 +30,6 @@ services:
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
TZ: Asia/Tehran
|
||||
ports:
|
||||
- "${APP_PORT:-8080}:8080"
|
||||
volumes:
|
||||
- backend_uploads:/app/uploads
|
||||
|
||||
@@ -46,8 +42,6 @@ services:
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "${WEB_PORT:-3000}:3000"
|
||||
|
||||
admin:
|
||||
build:
|
||||
@@ -58,8 +52,6 @@ services:
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "${ADMIN_PORT:-3001}:3000"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user