commit b3c5db8483e8e2026b529616a8c204f8a986c1a9 Author: 3wc <3wc.git@doesthisthing.work> Date: Sun May 2 13:49:41 2021 +0200 Initial working version diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..0c42984 --- /dev/null +++ b/.env.sample @@ -0,0 +1,12 @@ +TYPE=notea + +DOMAIN=notea.example.com +## Domain aliases +#EXTRA_DOMAINS=', `www.notea.example.com`' +LETS_ENCRYPT_ENV=production + +STORE_END_POINT=https://minio.example.com +STORE_BUCKET=notea +STORE_ACCESS_KEY=CHANGEME +STORE_SECRET_KEY=CHANGEME +NOTEA_PASSWORD=CHANGEME diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37b52cc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.envrc diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..cbb4829 --- /dev/null +++ b/compose.yml @@ -0,0 +1,40 @@ +--- +version: "3.8" + +services: + app: + image: cinwell/notea:latest + environment: + - STORE_ACCESS_KEY=${STORE_ACCESS_KEY} + - STORE_SECRET_KEY=${STORE_SECRET_KEY} + - STORE_BUCKET=${STORE_BUCKET} + - STORE_END_POINT=${STORE_END_POINT} + - STORE_FORCE_PATH_STYLE=true + - PASSWORD=${NOTEA_PASSWORD} + - COOKIE_SECURE=true + - BASE_URL="https://${DOMAIN}/" + 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}" + # healthcheck: + # test: ["CMD", "curl", "-f", "http://localhost"] + # interval: 30s + # timeout: 10s + # retries: 10 + # start_period: 1m + +networks: + proxy: + external: true