--- name: freshrss networks: freshrss_net: attachable: false internal: false external: false name: freshrss driver: bridge ipam: driver: default config: - subnet: 172.20.6.0/24 ip_range: 172.20.6.0/24 gateway: 172.20.6.1 driver_opts: com.docker.network.bridge.default_bridge: "false" com.docker.network.bridge.enable_icc: "true" com.docker.network.bridge.enable_ip_masquerade: "true" com.docker.network.bridge.host_binding_ipv4: "0.0.0.0" com.docker.network.bridge.name: "freshrss" com.docker.network.driver.mtu: "1500" labels: com.freshrss.network.description: "is an isolated bridge network." services: freshrss_db: deploy: resources: limits: pids: 2048 # Limits the number of processes and threads (fork bomb protection). restart: unless-stopped logging: driver: "json-file" options: max-size: "1M" max-file: "2" stop_grace_period: 1m container_name: freshrss_db image: docker.io/mariadb:13.1.2@sha256:396c449ce655b679f6abca2ecbcf7c2dfe1df233b3f22d83f2db17d5fcd1006c pull_policy: if_not_present volumes: - /docker/freshrss/production/db:/var/lib/mysql - /docker/freshrss/production/my.cnf:/etc/my.cnf - /sys/fs/cgroup/memory.pressure:/sys/fs/cgroup/memory.pressure env_file: # Compose loads each file that exists and skips a missing one: # '.env' for the Docker Compose CLI, 'stack.env' for Portainer. - path: .env required: false - path: stack.env required: false environment: PUID: "1000" PGID: "1000" TZ: Europe/Amsterdam # Adjust the timezone to match your local timezone. You can find the full list of timezones here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. MARIADB_ROOT_PASSWORD: ${ROOT_PASSWORD_DB} # Fill in the value in both the .env and stack.env files MARIADB_DATABASE: ${NAME_DB} # Fill in the value in both the .env and stack.env files MARIADB_USER: ${USER_DB} # Fill in the value in both the .env and stack.env files MARIADB_PASSWORD: ${PASSWORD_DB} # Fill in the value in both the .env and stack.env files hostname: freshrss_db networks: freshrss_net: ipv4_address: 172.20.6.2 security_opt: - no-new-privileges:true labels: com.freshrss.db.description: "is a MariaDB database." healthcheck: disable: false test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] interval: 10s timeout: 5s retries: 3 start_period: 10s start_interval: 5s freshrss_app: deploy: resources: limits: pids: 512 # Limits the number of processes and threads (fork bomb protection). restart: unless-stopped logging: driver: "json-file" options: max-size: "1M" max-file: "2" stop_grace_period: 1m container_name: freshrss image: docker.io/freshrss/freshrss:1.31.0@sha256:31b0acfcb8e11600aa6ce697ff8d9d7ea620c85d766e5e764f487b433d20d066 pull_policy: if_not_present depends_on: freshrss_db: condition: service_healthy volumes: - /docker/freshrss/production/app/data:/var/www/FreshRSS/data - /docker/freshrss/extensions:/var/www/FreshRSS/extensions env_file: # Compose loads each file that exists and skips a missing one: # '.env' for the Docker Compose CLI, 'stack.env' for Portainer. - path: .env required: false - path: stack.env required: false environment: PUID: "1000" PGID: "1000" TZ: Europe/Amsterdam # Adjust the timezone to match your local timezone. You can find the full list of timezones here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. CRON_MIN: "*/10" MARIADB_HOST: ${HOST_DB} # Fill in the value in both the .env and stack.env files MARIADB_PORT: ${PORT_DB} # Fill in the value in both the .env and stack.env files MARIADB_NAME: ${NAME_DB} # Fill in the value in both the .env and stack.env files MARIADB_USER: ${USER_DB} # Fill in the value in both the .env and stack.env files MARIADB_PASSWORD: ${PASSWORD_DB} # Fill in the value in both the .env and stack.env files domainname: freshrss.local # Customize this with your own domain, e.g., `freshrss.local` to `freshrss.your-fqdn-here.com`. hostname: freshrss networks: freshrss_net: ipv4_address: 172.20.6.3 ports: - "3002:80/tcp" # HTTP security_opt: - no-new-privileges:true labels: com.freshrss.description: "is a free, self-hostable feeds aggregator." healthcheck: disable: false test: ["CMD", "cli/health.php"] interval: 10s timeout: 5s retries: 3 start_period: 10s start_interval: 5s