Initial import

This commit is contained in:
3wc 2020-09-22 17:48:14 +02:00
commit b042d128fc
4 changed files with 51 additions and 0 deletions

4
.envrc.sample Normal file
View File

@ -0,0 +1,4 @@
export SERVICE=selfoss
export DOMAIN=reader.example.com
export STACK_NAME=selfoss
export LETS_ENCRYPT_ENV=production

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.envrc

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# selfoss
[Selfoss][selfoss] RSS reader using Coöp Cloud ♥
NOTE: this set-up currently has NO AUTHENTICATION and is probably not ready for
production use.
1. Set up Docker Swarm and [`abra`][abra]
2. Deploy [`compose-stacks/traefik`][compose-traefik]
3. `cp .envrc.sample .envrc`
4. Edit `.envrc` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box
5. `direnv allow` (or `. .envrc`)
6. `abra deploy`
8. Open the configured domain in your browser to finish set-up
[selfoss]: https://www.selfoss.aditu.de/
[abra]: https://git.autonomic.zone/autonomic-cooperative/abra
[compose-traefik]: https://git.autonomic.zone/compose-stacks/traefik

27
compose.yml Normal file
View File

@ -0,0 +1,27 @@
version: '3.3'
services:
selfoss:
image: akito13/selfoss
volumes:
- selfoss:/selfoss/data
networks:
- proxy
deploy:
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.${STACK_NAME}-http.rule=Host(`${DOMAIN?Variable not set}`)
- traefik.http.routers.${STACK_NAME}-http.entrypoints=web
- traefik.http.routers.${STACK_NAME}-https.rule=Host(`${DOMAIN?Variable not set}`)
- traefik.http.routers.${STACK_NAME}-https.entrypoints=web-secure
- traefik.http.routers.${STACK_NAME}-https.tls=true
- traefik.http.routers.${STACK_NAME}-https.tls.certresolver=${LETS_ENCRYPT_ENV}
- traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8888
networks:
proxy:
external: true
volumes:
selfoss: