sw-jobs-api/docker-compose.yaml

29 lines
737 B
YAML
Raw Normal View History

2024-05-29 21:28:58 +00:00
version: "3.8"
services:
api:
2024-05-29 22:50:53 +00:00
image: gitea.rannes.dev/rannes.dev/sw-jobs-api:latest
networks:
- traefik-proxy
2024-05-29 21:28:58 +00:00
ports:
2024-05-29 22:50:53 +00:00
- "3600:5000"
2024-05-29 21:28:58 +00:00
volumes:
2024-05-29 22:50:53 +00:00
- /appdata/sw-jobs/scrapers:/app/scrapers
2024-05-29 21:28:58 +00:00
environment:
- FLASK_ENV=production
2024-05-29 22:50:53 +00:00
labels:
- traefik.enable=true
- traefik.http.routers.swJobsRouter.rule=Host(`api.rannes.dev`)
- traefik.http.routers.swJobsRouter.tls=true
- traefik.http.routers.swJobsRouter.entryPoints=https
- traefik.http.routers.swJobsRouter.middlewares=crowdsec-bouncer@docker
2024-05-29 21:28:58 +00:00
scraper:
2024-05-29 22:50:53 +00:00
image: gitea.rannes.dev/rannes.dev/sw-jobs-scraper:latest
2024-05-29 21:28:58 +00:00
volumes:
2024-05-29 22:50:53 +00:00
- /appdata/sw-jobs/scrapers:/app
networks:
traefik-proxy:
external: true