Merge branch 'services' of https://github.com/coollabsio/coolify into services
This commit is contained in:
51
templates/compose/maybe.yaml
Normal file
51
templates/compose/maybe.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
# documentation: https://github.com/maybe-finance/maybe
|
||||
# slogan: Maybe: The OS for your personal finances.
|
||||
# tags: finances,wallets,coins,stocks,investments,open,source
|
||||
# logo: svgs/maybe.svg
|
||||
# port: 3000
|
||||
|
||||
services:
|
||||
maybe:
|
||||
image: "ghcr.io/maybe-finance/maybe:latest"
|
||||
volumes:
|
||||
- "app-storage:/rails/storage"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- SERVICE_FQDN_MAYBE
|
||||
- SELF_HOSTED=true
|
||||
- RAILS_FORCE_SSL=false
|
||||
- RAILS_ASSUME_SSL=false
|
||||
- GOOD_JOB_EXECUTION_MODE=async
|
||||
- SECRET_KEY_BASE=$SERVICE_BASE64_64_SECRETKEYBASE
|
||||
- DB_HOST=postgres
|
||||
- POSTGRES_DB=${POSTGRES_DB:-maybe_production}
|
||||
- POSTGRES_USER=${POSTGRES_USER:-maybe_user}
|
||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- "-f"
|
||||
- "http://localhost:3000"
|
||||
postgres:
|
||||
image: "postgres:16"
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "postgres-data:/var/lib/postgresql/data"
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER:-maybe_user}
|
||||
- POSTGRES_DB=${POSTGRES_DB:-maybe_production}
|
||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
app-storage: null
|
||||
postgres-data: null
|
Reference in New Issue
Block a user