From 0d80f1e8e626642bc0fd1dcd0272625ac2be4dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 20 Jun 2024 21:43:22 +0200 Subject: [PATCH] mobilizon docker setup --- docker-compose.yml | 50 ++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4059a67..9ddf0c1 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,13 +11,13 @@ services: depends_on: - wordpress - mobilizon - # - gancio + # - gancio networks: default: 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