forked from Shared/esg
Add docker-compose.deploy.yml
This commit is contained in:
30
docker-compose.deploy.yml
Normal file
30
docker-compose.deploy.yml
Normal 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:
|
||||
Reference in New Issue
Block a user