Add docker-compose.deploy.yml

This commit is contained in:
2026-06-09 16:26:07 +03:30
parent 24268bb653
commit a56a83ed40

30
docker-compose.deploy.yml Normal file
View File

@@ -0,0 +1,30 @@
services:
app:
image: ${REGISTRY_URL:-docker.ittalie.com}/${IMAGE_NAME:-shared-esg}:${IMAGE_TAG:-latest}
container_name: shared-esg
hostname: shared-esg
restart: unless-stopped
ports:
- "127.0.0.1:3000:3000"
env_file:
- .production.env
depends_on:
mongodb:
condition: service_healthy
mongodb:
image: docker.ittalie.com/mongo:7
container_name: shared-esg-db
hostname: shared-esg-db
restart: unless-stopped
volumes:
- esg_mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
esg_mongodb_data: