mobilizon docker setup
This commit is contained in:
parent
1024bd669c
commit
0d80f1e8e6
1 changed files with 24 additions and 26 deletions
|
@ -17,7 +17,7 @@ services:
|
||||||
aliases:
|
aliases:
|
||||||
- wp.lan
|
- wp.lan
|
||||||
- mz.lan
|
- mz.lan
|
||||||
# - ga.lan
|
- ga.lan
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
container_name: mobilizon_db
|
container_name: mobilizon_db
|
||||||
|
@ -35,38 +35,36 @@ services:
|
||||||
|
|
||||||
mobilizon:
|
mobilizon:
|
||||||
container_name: mobilizon
|
container_name: mobilizon
|
||||||
restart: unless-stopped
|
image: docker.io/framasoft/mobilizon
|
||||||
build:
|
|
||||||
context: ./mobilizon/mobilizon
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
volumes:
|
|
||||||
- "./mobilizon/mobilizon:/app"
|
|
||||||
# - "./mobilizon/dev.exs:/app/config/dev.exs"
|
|
||||||
- "/etc/ssl/certs:/etc/ssl/certs:ro"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: "dev"
|
|
||||||
DOCKER: "true"
|
|
||||||
MOBILIZON_INSTANCE_NAME: Mobilizon Local
|
MOBILIZON_INSTANCE_NAME: Mobilizon Local
|
||||||
MOBILIZON_INSTANCE_HOST: mz.lan
|
MOBILIZON_INSTANCE_HOST: mz.lan
|
||||||
MOBILIZON_INSTANCE_HOST_PORT: 4000
|
MOBILIZON_INSTANCE_LISTEN_IP: "0.0.0.0"
|
||||||
MOBILIZON_INSTANCE_PORT: 4000
|
MOBILIZON_INSTANCE_PORT: "4000"
|
||||||
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
|
MOBILIZON_INSTANCE_EMAIL: linos@example.com
|
||||||
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "true"
|
MOBILIZON_REPLY_EMAIL: linos@example.com
|
||||||
MOBILIZON_DATABASE_PASSWORD: mobilizon
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: true
|
||||||
MOBILIZON_DATABASE_USERNAME: mobilizon
|
MOBILIZON_DATABASE_USERNAME: mobilizon
|
||||||
|
MOBILIZON_DATABASE_PASSWORD: mobilizon
|
||||||
MOBILIZON_DATABASE_DBNAME: mobilizon
|
MOBILIZON_DATABASE_DBNAME: mobilizon
|
||||||
MOBILIZON_DATABASE_HOST: postgres
|
MOBILIZON_DATABASE_HOST: mobilizon_db
|
||||||
MOBILIZON_DATABASE_PORT: 5432
|
MOBILIZON_DATABASE_PORT: "5432"
|
||||||
VITE_HOST: 0.0.0.0
|
MOBILIZON_DATABASE_SSL: false
|
||||||
MOBILIZON_CA_CERT_PATH: "/etc/ssl/certs/ca-certificates.crt"
|
MOBILIZON_INSTANCE_SECRET_KEY_BASE: Twxx5T5En+PeV6q79o+K9EPtAQ6wCVldqPP3m3JQo3idqqddNH8w9bxZQTNQ1ssgKsk=
|
||||||
command: sh -c "mix phx.server"
|
MOBILIZON_INSTANCE_SECRET_KEY: pcv2o2Fq591I0V91NVwJHpWL2IAsd7+bwcyMmUhuAoXpjhlbdB0hI251O8M27Bs9+SM=
|
||||||
expose:
|
MOBILIZON_LOGLEVEL: info # debug
|
||||||
# - "443"
|
MOBILIZON_CA_CERT_PATH: "/usr/share/ca-certificates/mozilla/ca-certificates.crt"
|
||||||
- "4000"
|
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:
|
ports:
|
||||||
- "5173:5173"
|
- "4000:4000"
|
||||||
|
|
||||||
# gancio:
|
# gancio:
|
||||||
# restart: always
|
# restart: always
|
||||||
|
|
Loading…
Reference in a new issue