Initial working version

This commit is contained in:
3wc 2021-05-02 13:49:41 +02:00
commit b3c5db8483
3 changed files with 53 additions and 0 deletions

12
.env.sample Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

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

40
compose.yml Normal file
View File

@ -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