forked from Shared/esg
30 lines
719 B
YAML
30 lines
719 B
YAML
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: |