48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
---
|
|
|
|
version: "3.8"
|
|
|
|
volumes:
|
|
mobilizon:
|
|
name: ${MOBILIZON_VOLUME_NAME:-mobilizon}
|
|
|
|
services:
|
|
mobilizon:
|
|
container_name: ${MOBILIZON_CONTAINER_NAME:-mobilizon}
|
|
image: ${MOBILIZON_IMAGE:-framasoft/mobilizon:2.0.2@sha256:a703d399c35b3b685be7c154bf2ac74f5acd88d8c28dd42f05f68859d76edfd3}
|
|
restart: always
|
|
depends_on:
|
|
- postgres
|
|
- geoip
|
|
volumes:
|
|
- mobilizon:/var/lib/mobilizon/uploads
|
|
# - ${PWD}/config.exs:/etc/mobilizon/config.exs:ro
|
|
- geoip:/var/lib/mobilizon/geo_db
|
|
environment:
|
|
MOBILIZON_INSTANCE_NAME: ${MOBILIZON_INSTANCE_NAME}
|
|
MOBILIZON_INSTANCE_HOST: ${MOBILIZON_DOMAIN}
|
|
MOBILIZON_INSTANCE_PORT: ${MOBILIZON_INSTANCE_PORT:-4000}
|
|
MOBILIZON_INSTANCE_EMAIL: ${MOBILIZON_INSTANCE_EMAIL}
|
|
|
|
MOBILIZON_REPLY_EMAIL: ${MOBILIZON_REPLY_EMAIL}
|
|
MOBILIZON_ADMIN_EMAIL: ${MOBILIZON_ADMIN_EMAIL}
|
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: ${MOBILIZON_INSTANCE_REGISTRATIONS_OPEN:-false}
|
|
|
|
MOBILIZON_DATABASE_USERNAME: ${POSTGRES_USER}
|
|
MOBILIZON_DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
|
|
MOBILIZON_DATABASE_DBNAME: ${POSTGRES_DB}
|
|
MOBILIZON_DATABASE_HOST: ${POSTGRES_CONTAINER_NAME:-postgres} # Default name is same as ../postgres/docker-compose.yml:8
|
|
|
|
MOBILIZON_INSTANCE_SECRET_KEY_BASE: ${MOBILIZON_INSTANCE_SECRET_KEY_BASE:?err}
|
|
MOBILIZON_INSTANCE_SECRET_KEY: ${MOBILIZON_INSTANCE_SECRET_KEY:?err}
|
|
|
|
MOBILIZON_SMTP_SERVER: ${MOBILIZON_SMTP_SERVER:?err}
|
|
MOBILIZON_SMTP_HOSTNAME: ${MOBILIZON_SMTP_HOSTNAME:?err}
|
|
MOBILIZON_SMTP_PORT: ${MOBILIZON_SMTP_PORT:?err}
|
|
MOBILIZON_SMTP_SSL: ${MOBILIZON_SMTP_SSL:?err}
|
|
MOBILIZON_SMTP_USERNAME: ${MOBILIZON_SMTP_USERNAME:?err}
|
|
MOBILIZON_SMTP_PASSWORD: ${MOBILIZON_SMTP_PASSWORD:?err}
|
|
|
|
PUID: ${MOBILIZON_PUID:-1000}
|
|
PGID: ${MOBILIZON_PGID:-1000}
|