From b41c95ed2f9bb4cd5d4f308ac83810f02fa8396e Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 12 Oct 2021 13:37:20 +0200 Subject: [PATCH] init copy/pasta --- README.md | 18 ++------------- compose.yml | 63 +++++++++++++++++++++++++++++++---------------------- 2 files changed, 39 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 7c24e45..b6d575a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# {{ .Name }} +# snikket -{{ .Description }} +Chat that is simple, secure, and private. @@ -14,17 +14,3 @@ - **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 diff --git a/compose.yml b/compose.yml index 662a96c..f7c2ba2 100644 --- a/compose.yml +++ b/compose.yml @@ -2,30 +2,41 @@ version: "3.8" services: - app: - image: nginx:1.19.2 - networks: - - proxy - deploy: - restart_policy: - condition: on-failure - labels: - - "traefik.enable=true" - - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" - - "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}" - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost"] - interval: 30s - timeout: 10s - retries: 10 - start_period: 1m + snikket_proxy: + container_name: snikket-proxy + image: snikket/snikket-web-proxy:beta + env_file: snikket.conf + network_mode: host + volumes: + - snikket_data:/snikket + - acme_challenges:/var/www/html/.well-known/acme-challenge + restart: "unless-stopped" -networks: - proxy: - external: true + snikket_certs: + container_name: snikket-certs + image: snikket/snikket-cert-manager:beta + env_file: snikket.conf + volumes: + - snikket_data:/snikket + - acme_challenges:/var/www/.well-known/acme-challenge + restart: "unless-stopped" + + snikket_portal: + container_name: snikket-portal + image: snikket/snikket-web-portal:beta + network_mode: host + env_file: snikket.conf + restart: "unless-stopped" + + snikket_server: + container_name: snikket + image: snikket/snikket-server:beta + network_mode: host + volumes: + - snikket_data:/snikket + env_file: snikket.conf + restart: "unless-stopped" + +volumes: + acme_challenges: + snikket_data: