--- version: '3' services: db: image: docker.io/postgres:12-alpine restart: unless-stopped environment: - POSTGRES_USER=${TTRSS_DB_USER} - POSTGRES_PASSWORD=${TTRSS_DB_PASS} - POSTGRES_DB=${TTRSS_DB_NAME} env_file: - ${ENV_FILE:-.env} volumes: - db:/var/lib/postgresql/data app: build: context: ./app restart: unless-stopped env_file: - ${ENV_FILE:-.env} volumes: - app:/var/www/html - ./config.d:/opt/tt-rss/config.d:ro depends_on: - db backups: build: context: ./app restart: unless-stopped env_file: - ${ENV_FILE:-.env} volumes: - backups:/backups - app:/var/www/html depends_on: - db command: /opt/tt-rss/dcron.sh -f updater: build: context: ./app restart: unless-stopped env_file: - ${ENV_FILE:-.env} volumes: - app:/var/www/html - ./config.d:/opt/tt-rss/config.d:ro depends_on: - app command: /opt/tt-rss/updater.sh web-nginx: build: ./web-nginx restart: unless-stopped ports: - ${HTTP_PORT}:80 env_file: - ${ENV_FILE:-.env} volumes: - app:/var/www/html:ro depends_on: - app volumes: db: app: certs: backups: