crawling-and-serving/docker-compose.yaml

33 lines
672 B
YAML

version: '3'
services:
web:
build: .
ports:
- '3000:3000'
depends_on:
- mongo
environment:
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- MONGO_HOST=${MONGO_HOST}
- MONGO_PORT=${MONGO_PORT}
- MONGO_DATABASE=${MONGO_DATABASE}
networks:
- appnet
mongo:
image: mongo
environment:
- MONGO_INITDB_DATABASE=${MONGO_DATABASE}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- new:/data/db
networks:
- appnet
networks:
appnet:
driver: bridge
volumes:
new:
driver: local