Skip to content

Commit

Permalink
feat: update mobilizon
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed May 11, 2024
1 parent f8c54f8 commit c2e90dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
20 changes: 6 additions & 14 deletions stacks/mobilizon.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# DOMAIN=example.com docker stack deploy -c mobilizon.yml mobilizon
# UPDATE "users" SET "role" = 'administrator' WHERE "email" = '<[email protected]>';
# mobilizon_ctl users.new "[email protected]" --admin --password "myp@ssw0rd"
# chown -R 65534:65534 uploads/
# Don't change domain name

version: '3.8'

services:
web:
image: framasoft/mobilizon:${VERSION:-4.1.0}
volumes:
- ${VOLUME_PATH}uploads:/var/lib/mobilizon/uploads
environment:
- MIX_ENV=${MIX_ENV:-prod}
- DOCKER=true
- MIX_ENV=${MIX_ENV:-prod}
- MOBILIZON_INSTANCE_NAME=Mobilizon
- MOBILIZON_INSTANCE_HOST=${DOMAIN:-mobilizon.localhost}
- MOBILIZON_INSTANCE_EMAIL=${ADMIN_EMAIL:[email protected]}
Expand All @@ -28,15 +27,8 @@ services:
- MOBILIZON_SMTP_SSL=${SMTP_SSL:-false}
- MOBILIZON_SMTP_USERNAME=${SMTP_USERNAME}
- MOBILIZON_SMTP_PASSWORD=${SMTP_PASSWORD}
command: >
sh -c "cd js &&
yarn install &&
cd ../ &&
mix deps.get &&
mix compile &&
mix ecto.create &&
mix ecto.migrate &&
mix phx.server"
volumes:
- ${VOLUME_PATH}uploads:/var/lib/mobilizon/uploads
deploy:
labels:
- traefik.enable=true
Expand All @@ -50,7 +42,7 @@ services:
- traefik

postgres:
image: mdillon/postgis:11
image: postgis/postgis:${POSTGIS_VERSION:-16-3.4}
environment:
- POSTGRES_DB=mobilizon
- POSTGRES_USER=mobilizon
Expand Down
1 change: 1 addition & 0 deletions templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@
"title": "Mobilizon",
"description": "",
"categories": ["Événements"],
"manual": true,
"enabled": true,
"trial": 7,
"price": 19,
Expand Down

0 comments on commit c2e90dd

Please sign in to comment.