summaryrefslogtreecommitdiff
path: root/stacks/news/compose.yml
blob: d5feb836dae78016e2c3b2ccb7f69d48552e67d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
networks:
  edge_net:
    name: ${EDGE_NET}
    external: true # All networks MUST be external in production.
  db_net:
    name: ${DB_NET}
    external: true

services:
  news:
    image: freshrss/freshrss:latest
    restart: unless-stopped
    environment:
      FRESHRSS_ENV: production
      LISTEN: 0.0.0.0:80
      CRON_MIN: 2,32
    env_file:
      - ${ROOT}/stacks/.env # GLOBAL
      - ${ROOT}/secret/env/news.env
    networks:
      - edge_net
      - db_net
    expose:
      - 80
    extra_hosts:
      - "${OIDC_PROVIDER_URL}:${PROXY_IP}" # This is required so the container can return the right uri after auth.
    healthcheck:
      test: ["CMD", "cli/health.php"]
      timeout: 10s
      start_period: 60s
      start_interval: 11s
      interval: 75s
      retries: 3