Add networks

This commit is contained in:
Marko Korhonen 2020-06-27 11:04:29 +03:00
parent a274d7356b
commit 249262483c

View File

@ -9,6 +9,8 @@ services:
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
networks:
- tt-rss
tt-rss-app:
image: cthulhoo/ttrss-fpm-pgsql-static
@ -26,6 +28,8 @@ services:
- /docker/tt-rss/app:/var/www/html
depends_on:
- tt-rss-db
networks:
- tt-rss
tt-rss-updater:
image: cthulhoo/ttrss-fpm-pgsql-static
@ -44,6 +48,8 @@ services:
depends_on:
- tt-rss-app
command: /updater.sh
networks:
- tt-rss
tt-rss-web:
image: cthulhoo/ttrss-web
@ -54,6 +60,9 @@ services:
- /docker/tt-rss/app:/var/www/html:ro
depends_on:
- tt-rss-app
networks:
- tt-rss
- proxy
labels:
- "traefik.enable=true"
@ -69,3 +78,9 @@ services:
- "traefik.http.routers.tt-rss.service=tt-rss"
- "traefik.docker.network=proxy"
- "traefik.http.services.tt-rss.loadbalancer.server.port=8280"
networks:
tt-rss:
external: false
proxy:
external: true