dotfiles/docker/tt-rss/docker-compose.yml

91 lines
2.3 KiB
YAML
Raw Normal View History

2020-06-27 10:37:48 +03:00
version: "3"
services:
2020-06-27 11:32:36 +03:00
db:
2020-06-27 11:12:45 +03:00
container_name: tt-rss-db
2020-06-27 10:37:48 +03:00
image: postgres:12-alpine
restart: unless-stopped
volumes:
2020-06-27 11:21:20 +03:00
- /docker/tt-rss/db:/var/lib/postgresql/data
2020-06-27 10:37:48 +03:00
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
2020-06-27 11:04:29 +03:00
networks:
- tt-rss
2020-06-27 10:37:48 +03:00
2020-06-27 11:32:36 +03:00
app:
2020-06-27 11:12:45 +03:00
container_name: tt-rss-app
2020-06-27 10:37:48 +03:00
image: cthulhoo/ttrss-fpm-pgsql-static
restart: unless-stopped
environment:
- DB_TYPE=pgsql
2020-06-27 10:51:02 +03:00
- DB_HOST=tt-rss-db
2020-06-27 10:37:48 +03:00
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
- OWNER_UID=${OWNER_UID}
- OWNER_GID=${OWNER_GID}
- SELF_URL_PATH=${SELF_URL_PATH}
volumes:
- /docker/tt-rss/app:/var/www/html
depends_on:
2020-06-27 11:34:42 +03:00
- db
2020-06-27 11:04:29 +03:00
networks:
- tt-rss
2020-06-27 10:37:48 +03:00
2020-06-27 11:32:36 +03:00
updater:
2020-06-27 11:12:45 +03:00
container_name: tt-rss-updater
2020-06-27 10:37:48 +03:00
image: cthulhoo/ttrss-fpm-pgsql-static
restart: unless-stopped
environment:
- DB_TYPE=pgsql
2020-06-27 10:51:02 +03:00
- DB_HOST=tt-rss-db
2020-06-27 10:37:48 +03:00
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
- OWNER_UID=${OWNER_UID}
- OWNER_GID=${OWNER_GID}
- SELF_URL_PATH=${SELF_URL_PATH}
volumes:
- /docker/tt-rss/app:/var/www/html
depends_on:
2020-06-27 11:34:42 +03:00
- app
2020-06-27 10:37:48 +03:00
command: /updater.sh
2020-06-27 11:04:29 +03:00
networks:
- tt-rss
2020-06-27 10:37:48 +03:00
2020-06-27 11:32:36 +03:00
web:
2020-06-27 11:12:45 +03:00
container_name: tt-rss-web
2020-06-27 10:37:48 +03:00
image: cthulhoo/ttrss-web
restart: unless-stopped
ports:
2020-06-27 11:26:25 +03:00
- ${HTTP_PORT}:2015
2020-06-27 10:37:48 +03:00
volumes:
- /docker/tt-rss/app:/var/www/html:ro
depends_on:
2020-06-27 11:34:42 +03:00
- app
2020-06-27 11:04:29 +03:00
networks:
- tt-rss
- proxy
2020-06-27 10:48:03 +03:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.tt-rss-redirect.entrypoints=http"
- "traefik.http.routers.tt-rss-redirect.rule=Host(`rss.reekynet.com`)"
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.tt-rss-redirect.middlewares=http2https"
- "traefik.http.routers.tt-rss.entrypoints=https"
- "traefik.http.routers.tt-rss.rule=Host(`rss.reekynet.com`)"
- "traefik.http.routers.tt-rss.tls=true"
- "traefik.http.routers.tt-rss.tls.certresolver=http"
- "traefik.http.routers.tt-rss.service=tt-rss"
- "traefik.docker.network=proxy"
- "traefik.http.services.tt-rss.loadbalancer.server.port=8280"
2020-06-27 11:04:29 +03:00
networks:
tt-rss:
external: false
proxy:
external: true