This commit is contained in:
parent
bb8403525b
commit
63276ffd08
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user