colligit/docker-compose.yml

28 lines
486 B
YAML
Raw Normal View History

2023-01-19 15:15:05 +00:00
version: "3.8"
services:
app:
build: .
restart: unless-stopped
env_file: '.env'
ports:
- '4050:3000'
environment:
DB_URL: 'mongodb://mongodb:27017'
depends_on:
- mongodb
logging:
driver: local
options:
max-size: '10m'
mongodb:
image: mongo:4.2
restart: unless-stopped
volumes:
- mongo-data:/data/db
logging:
driver: local
options:
max-size: '10m'
volumes:
mongo-data: