cron path
All checks were successful
Build and Push Docker Images / build (push) Successful in 35s

This commit is contained in:
ChrQR 2024-05-30 00:50:53 +02:00
parent bb8403525b
commit 63276ffd08
2 changed files with 18 additions and 17 deletions

View File

@ -2,26 +2,27 @@ version: "3.8"
services: services:
api: api:
build: image: gitea.rannes.dev/rannes.dev/sw-jobs-api:latest
context: ./api networks:
dockerfile: Dockerfile - traefik-proxy
ports: ports:
- "5000:5000" - "3600:5000"
volumes: volumes:
- ./scrapers:/app/scrapers - /appdata/sw-jobs/scrapers:/app/scrapers
environment: environment:
- FLASK_ENV=production - FLASK_ENV=production
labels:
client: - traefik.enable=true
build: - traefik.http.routers.swJobsRouter.rule=Host(`api.rannes.dev`)
context: ./client - traefik.http.routers.swJobsRouter.tls=true
dockerfile: Dockerfile - traefik.http.routers.swJobsRouter.entryPoints=https
ports: - traefik.http.routers.swJobsRouter.middlewares=crowdsec-bouncer@docker
- "3000:3000"
scraper: scraper:
build: image: gitea.rannes.dev/rannes.dev/sw-jobs-scraper:latest
context: ./scrapers
dockerfile: Dockerfile
volumes: volumes:
- ./scrapers:/app - /appdata/sw-jobs/scrapers:/app
networks:
traefik-proxy:
external: true

View File

@ -33,4 +33,4 @@ COPY run_scraper.sh /usr/local/bin/run_scraper.sh
RUN chmod +x /usr/local/bin/run_scraper.sh RUN chmod +x /usr/local/bin/run_scraper.sh
# Run the command on container startup # Run the command on container startup
CMD ["cron", "-f"] CMD ["/usr/bin/cron", "-f"]