docker-compose environment for the entire v.st system https://v.st/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
env/mobilizon.yaml

62 lines
2.0 KiB

version: "3"
services:
mobilizon:
image: framasoft/mobilizon:2.1.0
container_name: mobilizon
restart: always
volumes:
- ./data/mobilizon/uploads:/var/lib/mobilizon/uploads
- ./mobilizon/config.exs:/etc/mobilizon/config.exs:ro
environment:
- KEYCLOAK_HOSTNAME=${KEYCLOAK_HOSTNAME}.${DOMAIN_NAME}
- REALM=${REALM}
- MOBILIZON_INSTANCE_HOST=${MOBILIZON_HOSTNAME}.${DOMAIN_NAME}
- MOBILIZON_INSTANCE_SECRET_KEY_BASE=${MOBILIZON_ADMIN_PASSWORD}
- MOBILIZON_INSTANCE_SECRET_KEY=${MOBILIZON_SESSION_SECRET}
- MOBILIZON_CLIENT_SECRET=${MOBILIZON_CLIENT_SECRET}
- MOBILIZON_INSTANCE_EMAIL=events@${DOMAIN_NAME}
- MOBILIZON_REPLY_EMAIL=noreply@${DOMAIN_NAME}
- MOBILIZON_SMTP_SERVER=${SMTP_SERVER}
- MOBILIZON_SMTP_PORT=${SMTP_PORT}
- MOBILIZON_SMTP_USERNAME=${SMTP_USER}
- MOBILIZON_SMTP_PASSWORD=${SMTP_PASSWORD}
- MOBILIZON_SMTP_SSL=false
- MOBILIZON_DATABASE_USERNAME=mobilizon
- MOBILIZON_DATABASE_PASSWORD=mobilizon
- MOBILIZON_DATABASE_DBNAME=mobilizon
- MOBILIZON_DATABASE_HOST=mobilizon-db
- MOBILIZON_INSTANCE_REGISTRATIONS_OPEN=false
- MOBILIZON_INSTANCE_PORT=7000
env_file:
- ./env.production
user: root
entrypoint:
- "/bin/sh"
- "-c"
- "chmod 777 /var/lib/mobilizon/uploads && exec su -p nobody -s /bin/sh /docker-entrypoint.sh"
# ports:
# - "7000:7000"
mobilizon-db:
image: postgis/postgis:13-3.1
container_name: mobilizon-db
restart: always
volumes:
- ./data/mobilizon/db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=mobilizon
- POSTGRES_PASSWORD=mobilizon
- POSTGRES_DB=mobilizon
# add the nginx configuration into the nginx volume
nginx:
volumes:
- ./mobilizon/nginx.conf:/etc/nginx/templates/mobilizon.conf.template:ro
# add the client secrets to the keycloak-setup volume
keycloak:
volumes:
- ./mobilizon/keycloak.sh:/keycloak-setup/mobilizon.sh:ro
- ./data/mobilizon/secrets:/run/secrets/mobilizon:ro