Compare commits
1
Commits
update-2.1.0
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
657a540035 |
@@ -9,5 +9,3 @@ LETS_ENCRYPT_ENV=production
|
||||
SECRET_KEY_BASE=replace-me
|
||||
DISABLE_AUTH=replace-me # true or false
|
||||
DISABLE_REGISTRATION=replace-me # true or false
|
||||
|
||||
SECRET_TOTP_VAULT_KEY_VERSION=v1
|
||||
|
||||
@@ -19,11 +19,6 @@
|
||||
2. Deploy [`coop-cloud/traefik`]
|
||||
3. `abra app new ${REPO_NAME} --secrets` (optionally with `--pass` if you'd like
|
||||
to save secrets in `pass`)
|
||||
IMPORTANT: The TOTP secret needs to be 32 bytes or the container does not start.
|
||||
```sh
|
||||
openssl rand -base64 32 > totp.txt
|
||||
abra app secret insert zammad.klasse-methode.it totp_secret v1 -f -t totp.txt
|
||||
```
|
||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
5. `abra app deploy YOURAPPDOMAIN`
|
||||
|
||||
@@ -3,4 +3,3 @@ export CLICKHOUSE_USER_CONF_VERSION=v2
|
||||
export CLICKHOUSE_ENTRYPOINT_VERSION=v6
|
||||
export PG_BACKUP_VERSION=v1
|
||||
export CLICKHOUSE_BACKUP_SCRIPT_VERSION=v1
|
||||
export PLAUSIBLE_ENTRYPOINT_VERSION=v1
|
||||
|
||||
+3
-17
@@ -3,8 +3,8 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: ghcr.io/plausible/community-edition:v2.1.0
|
||||
entrypoint: /plausible_entrypoint.sh
|
||||
image: plausible/analytics:v2.0.0
|
||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||
depends_on:
|
||||
- db
|
||||
- plausible_events_db
|
||||
@@ -21,12 +21,6 @@ services:
|
||||
- SMTP_HOST_SSL_ENABLED
|
||||
- DISABLE_REGISTRATION
|
||||
- DISABLE_AUTH
|
||||
secrets:
|
||||
- totp_secret
|
||||
configs:
|
||||
- source: plausible_entrypoint
|
||||
target: /plausible_entrypoint.sh
|
||||
mode: 0555
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@@ -73,7 +67,7 @@ services:
|
||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
||||
|
||||
plausible_events_db:
|
||||
image: clickhouse/clickhouse-server:24.3.3.102-alpine
|
||||
image: clickhouse/clickhouse-server:23.4.2.11-alpine
|
||||
volumes:
|
||||
- event-data:/var/lib/clickhouse
|
||||
entrypoint: /custom-entrypoint.sh
|
||||
@@ -109,9 +103,6 @@ networks:
|
||||
internal:
|
||||
|
||||
configs:
|
||||
plausible_entrypoint:
|
||||
name: ${STACK_NAME}_plausible_entrypoint_${PLAUSIBLE_ENTRYPOINT_VERSION}
|
||||
file: plausible_entrypoint.sh
|
||||
clickhouse-config:
|
||||
name: ${STACK_NAME}_clickhouse_config_${CLICKHOUSE_CONF_VERSION}
|
||||
file: clickhouse-config.xml
|
||||
@@ -127,8 +118,3 @@ configs:
|
||||
clickhouse_backup:
|
||||
name: ${STACK_NAME}_clickhouse_backup_${CLICKHOUSE_BACKUP_SCRIPT_VERSION}
|
||||
file: clickhouse_backup.sh
|
||||
|
||||
secrets:
|
||||
totp_secret:
|
||||
name: ${STACK_NAME}_totp_secret_${SECRET_TOTP_VAULT_KEY_VERSION}
|
||||
external: true
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
[ -f /run/secrets/totp_secret ] && export TOTP_VAULT_KEY="$(cat /run/secrets/totp_secret)"
|
||||
|
||||
sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||
Reference in New Issue
Block a user