rsshub/compose.yml

58 lines
1.3 KiB
YAML

---
version: "3.8"
services:
app:
image: "diygod/rsshub:2022-09-02"
environment:
- CACHE_CONTENT_EXPIRE
- CACHE_EXPIRE
- CACHE_TYPE=redis
- NODE_ENV=production
- PUPPETEER_WS_ENDPOINT=ws://browserless:3000
- REDIS_URL=redis://redis:6379/
networks:
- proxy
- internal
configs:
- source: app_entrypoint
target: /docker-entrypoint.sh
mode: 0555
entrypoint: /docker-entrypoint.sh
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=1200"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.0+2022-09-02"
browserless:
image: browserless/chrome
networks:
- internal
redis:
image: redis:alpine
networks:
- internal
volumes:
- redis_data:/data
volumes:
redis_data:
networks:
internal:
proxy:
external: true
configs:
app_entrypoint:
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang