9 Commits

5 changed files with 64 additions and 16 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag
+33
View File
@@ -0,0 +1,33 @@
# mobilizon
> A tool that helps you find, create and organize events utilizing ActivityPub!
<!-- metadata -->
* **Category**: Apps
* **Status**: 2
* **Image**: [`mobilizon`](https://hub.docker.com/r/framasoft/mobilizon), 4, upstream
* **Healthcheck**: Yes
* **Backups**: No
* **Email**: Yes
* **Tests**: No
* **SSO**: No
<!-- endmetadata -->
## Quick start
SMTP is required for setup, supply that secret first
* `abra app new mobilizon`
* `abra app secret i <app_domain> smtp_password v1 <smtp_pass>`
* `abra app secret g --all <app_domain> `
* `abra app config <app-name>`
* `abra app deploy <app-name>`
## Create your first admin account
* `abra app cmd <app_domain> create_admin <admin-email> <admin-pass>`
After logging in with these credentials the user will be prompted to set a nick and uri (ie. something like `username@mobilizon.example.com`).
For more, see [`docs.mobilizon.org`](https://docs.mobilizon.org).
+9
View File
@@ -0,0 +1,9 @@
export APP_ENTRYPOINT_VERSION=v1
create_admin(){
# if [ -z "$1" ]; then
# echo "Usage: ... create_admin <email_address> <password>"
# exit 1
# fi
mobilizon_ctl users.new "$1" --admin --password "$2"
}
+13 -15
View File
@@ -3,10 +3,10 @@ version: "3.8"
services:
app:
image: framasoft/mobilizon:4.1.0
image: framasoft/mobilizon:5.1.2
environment:
- MOBILIZON_INSTANCE_NAME
- MOBILIZON_INSTANCE_HOST=https://$DOMAIN
- MOBILIZON_INSTANCE_HOST=$DOMAIN
- MOBILIZON_INSTANCE_LISTEN_IP
- MOBILIZON_INSTANCE_PORT
- MOBILIZON_INSTANCE_EMAIL
@@ -34,9 +34,7 @@ services:
- db_password
volumes:
- "uploads:/var/lib/mobilizon/uploads"
# - ${PWD}/config.exs:/etc/mobilizon/config.exs:ro
entrypoint: /custom-entrypoint.sh
# entrypoint: ["/bin/sh", "-c", "sleep 10000000000000000"]
configs:
- source: app_entrypoint
target: /custom-entrypoint.sh
@@ -53,17 +51,12 @@ services:
- "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}"
- "coop-cloud.${STACK_NAME}.version=0.1.0+4.1.0"
## 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
- "coop-cloud.${STACK_NAME}.version=0.2.1+5.1.2"
healthcheck:
test: ["CMD", "curl", "-s", "http://localhost:4000"]
interval: 30s
timeout: 5s
retries: 3
db:
deploy:
@@ -82,6 +75,11 @@ services:
POSTGRES_DB: mobilizon
POSTGRES_USER: mobilizon
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
uploads:
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
export MOBILIZON_INSTANCE_SECRET_KEY_BASE=$(cat run/secrets/secret_key_base)
export MOBILIZON_INSTANCE_SECRET_KEY=$(cat run/secrets/secret_key)
export MOBILIZON_SMTP_PASSWORD=$(cat run/secrets/smtp_password)
export MOBILIZON_DATABASE_PASSWORD=$(cat run/secrets/db_password)
sh -c /docker-entrypoint.sh