-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
freshrss.yml
46 lines (42 loc) · 1.25 KB
/
freshrss.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
# DOMAIN=example.com docker stack deploy -c freshrss.yml freshrss.yml
services:
web:
image: freshrss/freshrss:${VERSION:-1.19.2-alpine}
volumes:
- ${VOLUME_PATH}data:/var/www/FreshRSS/data
- ${VOLUME_PATH}extensions:/var/www/FreshRSS/extensions
environment:
- CRON_MIN=*/20
- TZ=Europe/Paris
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.freshrss-${NUMBER:-1}.rule=Host(`${DOMAIN:-freshrss.localhost}`)
- traefik.http.routers.freshrss-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.freshrss-${NUMBER:-1}.service=freshrss-${NUMBER:-1}
- traefik.http.routers.freshrss-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.freshrss-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik
postgres:
image: postgres:12-alpine
environment:
- POSTGRES_DB=freshrss
- POSTGRES_USER=freshrss
- POSTGRES_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
data:
extensions:
postgres:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net