commit 8d4cf4adf1c350503c8cd50e133ec41c515e839a Author: 3wc <3wc@doesthisthing.work> Date: Sun Nov 21 21:30:26 2021 +0200 Initial import diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..6aa68a0 --- /dev/null +++ b/.env.sample @@ -0,0 +1,8 @@ +TYPE=oasis + +DOMAIN=oasis.example.com + +## Domain aliases +#EXTRA_DOMAINS=', `www.oasis.example.com`' +LETS_ENCRYPT_ENV=production +PT_ENV=production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a6353d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.envrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..ff4d3ee --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# oasis + +TODO + + + +- **Category**: Apps +- **Status**: 0, work-in-progress +- **Image**: +- **Healthcheck**: +- **Backups**: +- **Email**: +- **Tests**: +- **SSO**: + + + +## Basic usage + +1. Set up Docker Swarm and [`abra`] +2. Deploy [`coop-cloud/traefik`] +3. `abra app new ${REPO_NAME} --secrets` (optionally with `--pass` if you'd like + to save secrets in `pass`) +4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to + your Docker swarm box +5. `abra app YOURAPPDOMAIN deploy` +6. Open the configured domain in your browser to finish set-up + +[`abra`]: https://git.coopcloud.tech/coop-cloud/abra +[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik +/coop-cloud/traefik diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..f13fa9f --- /dev/null +++ b/compose.yml @@ -0,0 +1,37 @@ +--- +version: "3.8" + +services: + app: + image: 3wordchant/oasis:latest + networks: + - proxy + deploy: + restart_policy: + condition: on-failure + labels: + - "traefik.enable=true" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000" + - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" + - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" + - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" + ## Redirect from EXTRA_DOMAINS to DOMAIN + #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" + #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" + #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" + command: ["node", ".", "--host", "0.0.0.0", "--allow-host", "$DOMAIN"] + volumes: + - "ssb:/home/node/.ssb" + # healthcheck: + # test: ["CMD", "curl", "-f", "http://localhost"] + # interval: 30s + # timeout: 10s + # retries: 10 + # start_period: 1m + +volumes: + ssb: + +networks: + proxy: + external: true