crawling-and-serving/docker-compose.yaml
2023-04-19 15:03:33 +03:00

28 lines
513 B
YAML

version: '3'
services:
web:
build: .
ports:
- '3000:3000'
depends_on:
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017/mydatabase
networks:
- appnet
mongo:
image: mongo
environment:
- MONGO_INITDB_DATABASE=mydatabase
- MONGO_INITDB_ROOT_USERNAME=akamai
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- dbdata:/data/db
networks:
- appnet
networks:
appnet:
driver: bridge
volumes:
dbdata:
driver: local