mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 03:55:20 +02:00
Improve self hosting docs and UI (#870)
This commit is contained in:
parent
9956a9540e
commit
d0a15b8a98
5 changed files with 221 additions and 101 deletions
|
@ -1,21 +1,55 @@
|
|||
# ===========================================================================
|
||||
# Example Docker Compose file
|
||||
# ===========================================================================
|
||||
#
|
||||
# Purpose:
|
||||
# --------
|
||||
#
|
||||
# This file is an example Docker Compose configuration for self hosting
|
||||
# Maybe on your local machine or on a cloud VPS.
|
||||
#
|
||||
# The configuration below is a "standard" setup, but may require modification
|
||||
# for your specific environment.
|
||||
#
|
||||
# Setup:
|
||||
# ------
|
||||
#
|
||||
# To run this, you should read the setup guide:
|
||||
#
|
||||
# https://github.com/maybe-finance/maybe/blob/main/docs/hosting/docker.md
|
||||
#
|
||||
# Troubleshooting:
|
||||
# ----------------
|
||||
#
|
||||
# If you run into problems, you should open a Discussion here:
|
||||
#
|
||||
# https://github.com/maybe-finance/maybe/discussions/categories/general
|
||||
#
|
||||
|
||||
services:
|
||||
|
||||
app:
|
||||
image: ghcr.io/maybe-finance/maybe:latest
|
||||
|
||||
volumes:
|
||||
- ./storage:/rails/storage
|
||||
|
||||
ports:
|
||||
- 127.0.0.1:3000:3000
|
||||
- 3000:3000
|
||||
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
environment:
|
||||
SELF_HOSTING_ENABLED: true
|
||||
DB_HOST: postgres
|
||||
RAILS_FORCE_SSL: false
|
||||
RAILS_ASSUME_SSL: false
|
||||
POSTGRES_USER: postgres
|
||||
SELF_HOSTING_ENABLED: "true"
|
||||
RAILS_FORCE_SSL: "false"
|
||||
RAILS_ASSUME_SSL: "false"
|
||||
GOOD_JOB_EXECUTION_MODE: async
|
||||
SECRET_KEY_BASE: ${SECRET_KEY_BASE:?}
|
||||
DB_HOST: postgres
|
||||
POSTGRES_DB: ${POSTGRES_DB:-maybe_production}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-maybe_user}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
|
||||
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
@ -26,11 +60,11 @@ services:
|
|||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-maybe_user}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-maybe_production}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER" ]
|
||||
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue