Add docker-compose.yml
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
|
||||
security-news:
|
||||
# Portainer pullt automatisch van GitLab registry na elke CI push
|
||||
# Vervang JOUW_GEBRUIKER met je GitLab gebruikersnaam of groep
|
||||
image: registry.gitlab.com/JOUW_GEBRUIKER/security-news:latest
|
||||
container_name: security-news
|
||||
restart: "no"
|
||||
environment:
|
||||
- TZ=Europe/Amsterdam
|
||||
- SCRAPER_TOP=20
|
||||
- SCRAPER_SEVERITY= # leeg = alles | kritiek/hoog/medium/laag
|
||||
- SCRAPER_TOPIC= # leeg = alles | Ransomware / APT/Nation-state / etc.
|
||||
- SCRAPER_MAX_PER_SOURCE=10
|
||||
volumes:
|
||||
- security-news-output:/app/output
|
||||
networks:
|
||||
- internal
|
||||
|
||||
scheduler:
|
||||
image: mcuadros/ofelia:latest
|
||||
container_name: security-news-scheduler
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- security-news
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
command: daemon --docker
|
||||
labels:
|
||||
ofelia.job-run.security-news-daily.schedule: "0 7 * * *"
|
||||
ofelia.job-run.security-news-daily.container: "security-news"
|
||||
networks:
|
||||
- internal
|
||||
|
||||
volumes:
|
||||
security-news-output:
|
||||
name: security-news-output
|
||||
|
||||
networks:
|
||||
internal:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user