1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Improve self hosting docs (#732)

This commit is contained in:
Zach Gollwitzer 2024-05-10 06:10:23 -04:00 committed by GitHub
parent fac995b87e
commit 2aee8e3027
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 203 additions and 158 deletions

View file

@ -2,16 +2,20 @@ services:
app:
image: ghcr.io/maybe-finance/maybe:latest
volumes:
- ./storage:/rails/storage
ports:
- 127.0.0.1:3000:3000
restart: unless-stopped
env_file:
- .env
environment:
DB_HOST: "postgres"
RAILS_ENV: "production"
SELF_HOSTING_ENABLED: true
DB_HOST: postgres
RAILS_FORCE_SSL: false
RAILS_ASSUME_SSL: false
POSTGRES_USER: postgres
GOOD_JOB_EXECUTION_MODE: async
depends_on:
postgres:
condition: service_healthy
@ -22,8 +26,8 @@ services:
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:?}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-maybe_production}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER" ]
@ -32,4 +36,4 @@ services:
retries: 5
volumes:
postgres-data:
postgres-data: