update
This commit is contained in:
33
news_crawler/docker-compose.yml
Normal file
33
news_crawler/docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
crawler:
|
||||
build: .
|
||||
container_name: news-crawler
|
||||
environment:
|
||||
- MONGODB_URI=mongodb://mongodb:27017/
|
||||
networks:
|
||||
- munich-news-network
|
||||
depends_on:
|
||||
- mongodb
|
||||
# Run once and exit
|
||||
restart: "no"
|
||||
|
||||
mongodb:
|
||||
image: mongo:7.0
|
||||
container_name: munich-news-mongodb
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "27017:27017"
|
||||
volumes:
|
||||
- mongodb_data:/data/db
|
||||
networks:
|
||||
- munich-news-network
|
||||
|
||||
volumes:
|
||||
mongodb_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
munich-news-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user