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:
api:
build:
context: ./api
dockerfile: Dockerfile
image: gitea.rannes.dev/rannes.dev/sw-jobs-api:latest
networks:
- traefik-proxy
ports:
- "5000:5000"
- "3600:5000"
volumes:
- ./scrapers:/app/scrapers
- /appdata/sw-jobs/scrapers:/app/scrapers
environment:
- FLASK_ENV=production
client:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
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
scraper:
build:
context: ./scrapers
dockerfile: Dockerfile
image: gitea.rannes.dev/rannes.dev/sw-jobs-scraper:latest
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 the command on container startup
CMD ["cron", "-f"]
CMD ["/usr/bin/cron", "-f"]