updated docker

This commit is contained in:
2026-01-25 09:50:32 +01:00
parent 7b56025ef7
commit 57f831b9bd
2 changed files with 157 additions and 14 deletions

16
docker-compose.yml Normal file → Executable file
View File

@@ -3,7 +3,6 @@ version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: recruitment-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME:-recruitment}
@@ -11,22 +10,17 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme123}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- recruitment-network
app:
build: .
container_name: recruitment-app
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
expose:
- "3000"
environment:
NODE_ENV: production
PORT: 3000
@@ -39,13 +33,7 @@ services:
depends_on:
postgres:
condition: service_healthy
networks:
- recruitment-network
volumes:
postgres_data:
driver: local
networks:
recruitment-network:
driver: bridge