1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-30 01:51:48 +00:00

Add Gollum, my precious!

This commit is contained in:
David Young
2017-08-29 21:48:55 +12:00
parent f5c24af75c
commit 151e6df01c
15 changed files with 188 additions and 9 deletions

View File

@@ -55,6 +55,12 @@ S6_BEHAVIOUR_IF_STAGE2_FAILS=2
### Setup docker swarm
Create a docker swarm config file in docker-compose syntax (v3), something like this:
!!! tip
I share (_with my [patreon patrons](https://www.patreon.com/funkypenguin)_) a private "_premix_" git repository, which includes necessary docker-compose and env files for all published recipes. This means that patrons can launch any recipe with just a ```git pull``` and a ```docker stack deploy``` 👍
```
version: '3'
@@ -84,7 +90,7 @@ services:
env_file: /var/data/ttrss/ttrss.env
volumes:
- /var/data/ttrss/database-dump:/dump
- /etc/localtime:/etc/localtime:ro
- /etc/localtime:/etc/localtime:ro
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
@@ -108,6 +114,10 @@ networks:
- subnet: 172.16.5.0/24
```
!!! note
Setup unique static subnets for every stack you deploy. This avoids IP/gateway conflicts which can otherwise occur when you're creating/removing stacks a lot. See [my list](/reference/networks/) here.
## Serving
### Launch TTRSS stack