mobilizon docker setup

This commit is contained in:
André Menrath 2024-06-20 21:43:22 +02:00
parent 1024bd669c
commit 0d80f1e8e6

View file

@ -17,7 +17,7 @@ services:
aliases:
- wp.lan
- mz.lan
# - ga.lan
- ga.lan
postgres:
container_name: mobilizon_db
@ -35,38 +35,36 @@ services:
mobilizon:
container_name: mobilizon
restart: unless-stopped
build:
context: ./mobilizon/mobilizon
dockerfile: Dockerfile
volumes:
- "./mobilizon/mobilizon:/app"
# - "./mobilizon/dev.exs:/app/config/dev.exs"
- "/etc/ssl/certs:/etc/ssl/certs:ro"
image: docker.io/framasoft/mobilizon
depends_on:
- postgres
environment:
MIX_ENV: "dev"
DOCKER: "true"
MOBILIZON_INSTANCE_NAME: Mobilizon Local
MOBILIZON_INSTANCE_HOST: mz.lan
MOBILIZON_INSTANCE_HOST_PORT: 4000
MOBILIZON_INSTANCE_PORT: 4000
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "true"
MOBILIZON_DATABASE_PASSWORD: mobilizon
MOBILIZON_INSTANCE_LISTEN_IP: "0.0.0.0"
MOBILIZON_INSTANCE_PORT: "4000"
MOBILIZON_INSTANCE_EMAIL: linos@example.com
MOBILIZON_REPLY_EMAIL: linos@example.com
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: true
MOBILIZON_DATABASE_USERNAME: mobilizon
MOBILIZON_DATABASE_PASSWORD: mobilizon
MOBILIZON_DATABASE_DBNAME: mobilizon
MOBILIZON_DATABASE_HOST: postgres
MOBILIZON_DATABASE_PORT: 5432
VITE_HOST: 0.0.0.0
MOBILIZON_CA_CERT_PATH: "/etc/ssl/certs/ca-certificates.crt"
command: sh -c "mix phx.server"
expose:
# - "443"
- "4000"
MOBILIZON_DATABASE_HOST: mobilizon_db
MOBILIZON_DATABASE_PORT: "5432"
MOBILIZON_DATABASE_SSL: false
MOBILIZON_INSTANCE_SECRET_KEY_BASE: Twxx5T5En+PeV6q79o+K9EPtAQ6wCVldqPP3m3JQo3idqqddNH8w9bxZQTNQ1ssgKsk=
MOBILIZON_INSTANCE_SECRET_KEY: pcv2o2Fq591I0V91NVwJHpWL2IAsd7+bwcyMmUhuAoXpjhlbdB0hI251O8M27Bs9+SM=
MOBILIZON_LOGLEVEL: info # debug
MOBILIZON_CA_CERT_PATH: "/usr/share/ca-certificates/mozilla/ca-certificates.crt"
volumes:
- ./mobilizon/uploads:/var/lib/mobilizon/uploads
#- ./mobilizon/config.exs:/etc/mobilizon/config.exs:ro
- /etc/ssl/certs/ca-certificates.crt:/usr/share/ca-certificates/mozilla/ca-certificates.crt:rox
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:rox
- /etc/ssl/certs/mkcert_linos_yoga__Andr___Menrath_.pem:/usr/share/ca-certificates/mozilla/mkcert_linos_yoga__Andr___Menrath_.pem:roxs
- /etc/ssl/certs/mkcert_linos_yoga__Andr___Menrath_.pem:/etc/ssl/certs/mkcert_linos_yoga__Andr___Menrath_.pem:rox
ports:
- "5173:5173"
- "4000:4000"
# gancio:
# restart: always