Compare commits
7 Commits
2.2.0+16.2
...
compose-sp
| Author | SHA1 | Date | |
|---|---|---|---|
|
274e46e96e
|
|||
|
5a942c67a0
|
|||
|
3db5ca8b55
|
|||
|
1cee5fd5d2
|
|||
|
32354ad984
|
|||
|
8b1aa49240
|
|||
|
047d27a969
|
84
.env.sample
84
.env.sample
@ -1,7 +1,7 @@
|
||||
TYPE=karrot
|
||||
|
||||
# For more information about these options
|
||||
# see https://docs.karrot.world/self-host/options
|
||||
# see https://docs.karrot.world/self-host/settings
|
||||
|
||||
DOMAIN=karrot.example.com
|
||||
|
||||
@ -10,24 +10,37 @@ COMPOSE_FILE="compose.yml"
|
||||
SITE_NAME=karrot dev
|
||||
SITE_LOGO=https://user-images.githubusercontent.com/31616/36565633-517373a4-1821-11e8-9948-5bf6887c667e.png
|
||||
|
||||
FILE_UPLOAD_MAX_SIZE=10m
|
||||
|
||||
# Useful to set this, it's a comma separated list of email address.
|
||||
# Anyone that registers with one of these emails addresses is considered an instance admin
|
||||
# and will have access to the instance admin UI within Karrot
|
||||
#ADMIN_EMAILS=
|
||||
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
SECRET_SECRET_KEY_VERSION=v1
|
||||
SECRET_SMTP_PASSWORD_VERSION=v1
|
||||
|
||||
# account id for maxmind (for GeoIP)
|
||||
# uncomment if using maxmind account
|
||||
# make sure to add the maxmind_license_key secret too
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.geoip.yml"
|
||||
#MAXMIND_ACCOUNT_ID=
|
||||
SECRET_MAXMIND_LICENSE_KEY_VERSION=v1
|
||||
SECRET_VAPID_PRIVATE_KEY_VERSION=v1
|
||||
SECRET_LIVEKIT_API_SECRET_VERSION=v1
|
||||
SECRET_POSTAL_API_KEY_VERSION=v1
|
||||
|
||||
FILE_UPLOAD_MAX_SIZE=10m
|
||||
# Email
|
||||
#------------------------------------------------------
|
||||
|
||||
# Note: you can also configure this in the admin UI
|
||||
# Can be: postal, smtp, or console
|
||||
|
||||
# postal,smtp,console
|
||||
EMAIL_BACKEND=console
|
||||
|
||||
# only set these when using EMAIL_BACKEND=smtp
|
||||
# SMTP
|
||||
#-----------------------
|
||||
|
||||
# when EMAIL_BACKEND=smtp
|
||||
# SMTP USER and EMAIL_FROM are usually the same
|
||||
# make sure to set the smtp_password secret
|
||||
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
|
||||
#EMAIL_FROM=
|
||||
#SMTP_USER=
|
||||
#SMTP_HOST=
|
||||
@ -35,28 +48,61 @@ EMAIL_BACKEND=console
|
||||
#SMTP_USE_TLS=true
|
||||
#SMTP_PORT=587
|
||||
|
||||
# only set these when using EMAIL_BACKEND=postal
|
||||
#POSTAL_API_KEY=
|
||||
#POSTAL_API_URL=
|
||||
#POSTAL_WEBHOOK_KEY=
|
||||
# Postal
|
||||
#-----------------------
|
||||
|
||||
# only if you have configured incoming emails
|
||||
# when EMAIL_BACKEND=postal
|
||||
# make sure to set the postal_api_key secret
|
||||
|
||||
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.postal.yml"
|
||||
#POSTAL_API_URL=
|
||||
|
||||
# Postal incoming email
|
||||
#-----------------------
|
||||
|
||||
# If you are using postal for incoming email, set these.
|
||||
# You can use smtp for outgoing and postal for incoming if you wish!
|
||||
|
||||
#POSTAL_WEBHOOK_KEY=
|
||||
#EMAIL_REPLY_DOMAIN=
|
||||
|
||||
# For web push set this, and the vapid private key secret
|
||||
# MaxMind GeoIP (optional)
|
||||
#------------------------------------------------------
|
||||
|
||||
# account id for maxmind (for GeoIP)
|
||||
# uncomment if using maxmind account
|
||||
# make sure to set the maxmind_license_key secret
|
||||
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.geoip.yml"
|
||||
#MAXMIND_ACCOUNT_ID=
|
||||
|
||||
# Web Push (Vapid) (optional)
|
||||
#------------------------------------------------------
|
||||
|
||||
# Note: you can also configure this in the instance admin UI
|
||||
# You need to generate a valid vapid keypair
|
||||
# You can generate one by running:
|
||||
# docker run --rm codeberg.org/karrot/generate-vapid-keypair
|
||||
# make sure to set the vapid_private_key secret
|
||||
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.vapid.yml"
|
||||
#VAPID_PUBLIC_KEY=
|
||||
#VAPID_ADMIN_EMAIL=
|
||||
#SECRET_VAPID_PRIVATE_KEY_VERSION=v1
|
||||
|
||||
# for video calls
|
||||
# Video calls (optional)
|
||||
#------------------------------------------------------
|
||||
|
||||
# Note: you can also configure this in the admin UI
|
||||
# make sure to set the livekit_api_secret secret
|
||||
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.livekit.yml"
|
||||
#MEET_LIVEKIT_ENDPOINT=
|
||||
#MEET_LIVEKIT_API_KEY=
|
||||
#SECRET_LIVEKIT_API_SECRET_VERSION=v1
|
||||
|
||||
# You probably don't need to touch these
|
||||
#------------------------------------------------------
|
||||
|
||||
SITE_URL=https://${DOMAIN}
|
||||
LETS_ENCRYPT_ENV=production
|
||||
CSRF_TRUSTED_ORIGINS=${SITE_URL}
|
||||
|
||||
23
compose.livekit.yml
Normal file
23
compose.livekit.yml
Normal file
@ -0,0 +1,23 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
secrets:
|
||||
- livekit_api_secret
|
||||
environment:
|
||||
- MEET_LIVEKIT_ENDPOINT
|
||||
- MEET_LIVEKIT_API_KEY
|
||||
- MEET_LIVEKIT_API_SECRET_FILE=/run/secrets/livekit_api_secret
|
||||
|
||||
worker:
|
||||
secrets:
|
||||
- livekit_api_secret
|
||||
environment:
|
||||
- MEET_LIVEKIT_ENDPOINT
|
||||
- MEET_LIVEKIT_API_KEY
|
||||
- MEET_LIVEKIT_API_SECRET_FILE=/run/secrets/livekit_api_secret
|
||||
|
||||
secrets:
|
||||
livekit_api_secret:
|
||||
external: true
|
||||
name: ${STACK_NAME}_livekit_api_secret_${SECRET_LIVEKIT_API_SECRET_VERSION}
|
||||
21
compose.postal.yml
Normal file
21
compose.postal.yml
Normal file
@ -0,0 +1,21 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
secrets:
|
||||
- postal_api_key
|
||||
environment:
|
||||
- POSTAL_API_KEY_FILE=/run/secrets/postal_api_key
|
||||
- POSTAL_API_URL
|
||||
|
||||
worker:
|
||||
secrets:
|
||||
- postal_api_key
|
||||
environment:
|
||||
- POSTAL_API_KEY_FILE=/run/secrets/postal_api_key
|
||||
- POSTAL_API_URL
|
||||
|
||||
secrets:
|
||||
postal_api_key:
|
||||
external: true
|
||||
name: ${STACK_NAME}_postal_api_key_${SECRET_POSTAL_API_KEY_VERSION}
|
||||
29
compose.smtp.yml
Normal file
29
compose.smtp.yml
Normal file
@ -0,0 +1,29 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
secrets:
|
||||
- smtp_password
|
||||
environment:
|
||||
- SMTP_HOST
|
||||
- SMTP_PASSWORD_FILE=/run/secrets/smtp_password
|
||||
- SMTP_PORT
|
||||
- SMTP_USE_SSL
|
||||
- SMTP_USE_TLS
|
||||
- SMTP_USER
|
||||
|
||||
worker:
|
||||
secrets:
|
||||
- smtp_password
|
||||
environment:
|
||||
- SMTP_HOST
|
||||
- SMTP_PASSWORD_FILE=/run/secrets/smtp_password
|
||||
- SMTP_PORT
|
||||
- SMTP_USE_SSL
|
||||
- SMTP_USE_TLS
|
||||
- SMTP_USER
|
||||
|
||||
secrets:
|
||||
smtp_password:
|
||||
external: true
|
||||
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
|
||||
23
compose.vapid.yml
Normal file
23
compose.vapid.yml
Normal file
@ -0,0 +1,23 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
secrets:
|
||||
- vapid_private_key
|
||||
environment:
|
||||
- VAPID_ADMIN_EMAIL
|
||||
- VAPID_PUBLIC_KEY
|
||||
- VAPID_PRIVATE_KEY_FILE=/run/secrets/vapid_private_key
|
||||
|
||||
worker:
|
||||
secrets:
|
||||
- vapid_private_key
|
||||
environment:
|
||||
- VAPID_ADMIN_EMAIL
|
||||
- VAPID_PUBLIC_KEY
|
||||
- VAPID_PRIVATE_KEY_FILE=/run/secrets/vapid_private_key
|
||||
|
||||
secrets:
|
||||
vapid_private_key:
|
||||
external: true
|
||||
name: ${STACK_NAME}_vapid_private_key_${SECRET_VAPID_PRIVATE_KEY_VERSION}
|
||||
60
compose.yml
60
compose.yml
@ -2,7 +2,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: "codeberg.org/karrot/karrot-frontend:v16.2.0"
|
||||
image: "codeberg.org/karrot/karrot-frontend:v17.2.1"
|
||||
depends_on:
|
||||
- app
|
||||
environment:
|
||||
@ -35,7 +35,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
|
||||
app:
|
||||
image: "codeberg.org/karrot/karrot-backend:v16.2.0"
|
||||
image: "codeberg.org/karrot/karrot-backend:v17.2.1"
|
||||
networks:
|
||||
- internal
|
||||
depends_on:
|
||||
@ -44,9 +44,6 @@ services:
|
||||
secrets:
|
||||
- db_password
|
||||
- secret_key
|
||||
- smtp_password
|
||||
- vapid_private_key
|
||||
- livekit_api_secret
|
||||
volumes:
|
||||
- "app_data:/app/uploads/"
|
||||
- "plugins_data:/app/plugins/"
|
||||
@ -70,8 +67,8 @@ services:
|
||||
- LISTEN_HOST=0.0.0.0
|
||||
- LISTEN_SERVER=uvicorn
|
||||
- MODE=prod
|
||||
- POSTAL_API_KEY
|
||||
- POSTAL_API_URL
|
||||
# Keep POSTAL_WEBHOOK_KEY in main compose file
|
||||
# as you can use it without the other postal vars
|
||||
- POSTAL_WEBHOOK_KEY
|
||||
- PROXY_DISCOURSE_URL
|
||||
- PLUGIN_DIR=/app/plugins/
|
||||
@ -82,34 +79,23 @@ services:
|
||||
- SITE_LOGO
|
||||
- SITE_NAME
|
||||
- SITE_URL
|
||||
- SMTP_HOST
|
||||
- SMTP_PASSWORD_FILE=/run/secrets/smtp_password
|
||||
- SMTP_PORT
|
||||
- SMTP_USE_SSL
|
||||
- SMTP_USE_TLS
|
||||
- SMTP_USER
|
||||
- VAPID_ADMIN_EMAIL
|
||||
- VAPID_PUBLIC_KEY
|
||||
- VAPID_PRIVATE_KEY_FILE=/run/secrets/vapid_private_key
|
||||
- MEET_LIVEKIT_ENDPOINT
|
||||
- MEET_LIVEKIT_API_KEY
|
||||
- MEET_LIVEKIT_API_SECRET_FILE=/run/secrets/livekit_api_secret
|
||||
- MIGRATE=yes
|
||||
command: server
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/settings/"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/healthcheck/"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 45s
|
||||
# sometimes migrations can take their time..
|
||||
start_period: 600s
|
||||
deploy:
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.version=2.2.0+16.2.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=3.2.1+17.2.1"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/app/uploads"
|
||||
|
||||
worker:
|
||||
image: "codeberg.org/karrot/karrot-backend:v16.2.0"
|
||||
image: "codeberg.org/karrot/karrot-backend:v17.2.1"
|
||||
depends_on:
|
||||
- app
|
||||
networks:
|
||||
@ -117,9 +103,6 @@ services:
|
||||
secrets:
|
||||
- db_password
|
||||
- secret_key
|
||||
- smtp_password
|
||||
- vapid_private_key
|
||||
- livekit_api_secret
|
||||
volumes:
|
||||
- "app_data:/app/uploads/"
|
||||
- "plugins_data:/app/plugins/"
|
||||
@ -137,8 +120,8 @@ services:
|
||||
- LISTEN_HOST=0.0.0.0
|
||||
- LISTEN_SERVER=uvicorn
|
||||
- MODE=prod
|
||||
- POSTAL_API_KEY
|
||||
- POSTAL_API_URL
|
||||
# Keep POSTAL_WEBHOOK_KEY in main compose file
|
||||
# as you can use it without the other postal vars
|
||||
- POSTAL_WEBHOOK_KEY
|
||||
- PLUGIN_DIR=/app/plugins/
|
||||
- REDIS_DB=0
|
||||
@ -148,18 +131,6 @@ services:
|
||||
- SITE_LOGO
|
||||
- SITE_NAME
|
||||
- SITE_URL
|
||||
- SMTP_HOST
|
||||
- SMTP_PASSWORD_FILE=/run/secrets/smtp_password
|
||||
- SMTP_PORT
|
||||
- SMTP_USE_SSL
|
||||
- SMTP_USE_TLS
|
||||
- SMTP_USER
|
||||
- VAPID_ADMIN_EMAIL
|
||||
- VAPID_PUBLIC_KEY
|
||||
- VAPID_PRIVATE_KEY_FILE=/run/secrets/vapid_private_key
|
||||
- MEET_LIVEKIT_ENDPOINT
|
||||
- MEET_LIVEKIT_API_KEY
|
||||
- MEET_LIVEKIT_API_SECRET_FILE=/run/secrets/livekit_api_secret
|
||||
command: worker
|
||||
|
||||
redis:
|
||||
@ -206,15 +177,6 @@ secrets:
|
||||
secret_key:
|
||||
external: true
|
||||
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
|
||||
smtp_password:
|
||||
external: true
|
||||
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
|
||||
vapid_private_key:
|
||||
external: true
|
||||
name: ${STACK_NAME}_vapid_private_key_${SECRET_VAPID_PRIVATE_KEY_VERSION}
|
||||
livekit_api_secret:
|
||||
external: true
|
||||
name: ${STACK_NAME}_livekit_api_secret_${SECRET_LIVEKIT_API_SECRET_VERSION}
|
||||
|
||||
volumes:
|
||||
app_data:
|
||||
|
||||
Reference in New Issue
Block a user