coolify/templates/compose/maybe.yaml

46 lines
1.3 KiB
YAML
Raw Normal View History

2024-11-22 23:10:51 +00:00
# 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:
2024-11-25 12:34:00 +00:00
image: ghcr.io/maybe-finance/maybe:latest
2024-11-22 23:10:51 +00:00
volumes:
2024-11-25 12:34:00 +00:00
- app_storage:/rails/storage
2024-11-22 23:10:51 +00:00
environment:
- SERVICE_FQDN_MAYBE
- SELF_HOSTED=true
2024-11-25 12:34:00 +00:00
- RAILS_FORCE_SSL=${RAILS_FORCE_SSL:-false}
- RAILS_ASSUME_SSL=${RAILS_ASSUME_SSL:-false}
- GOOD_JOB_EXECUTION_MODE=${GOOD_JOB_EXECUTION_MODE:-async}
- SECRET_KEY_BASE=${SERVICE_BASE64_64_SECRETKEYBASE}
2024-11-22 23:10:51 +00:00
- DB_HOST=postgres
2024-11-25 12:34:00 +00:00
- POSTGRES_DB=${POSTGRES_DB:-maybe_db}
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
2024-11-22 23:10:51 +00:00
depends_on:
postgres:
condition: service_healthy
healthcheck:
test:
- CMD
- curl
- "-f"
- "http://localhost:3000"
2024-11-25 12:34:00 +00:00
2024-11-22 23:10:51 +00:00
postgres:
2024-11-25 12:34:00 +00:00
image: postgres:16
2024-11-22 23:10:51 +00:00
volumes:
2024-11-25 12:34:00 +00:00
- maybe_postgres_data:/var/lib/postgresql/data
2024-11-22 23:10:51 +00:00
environment:
2024-11-25 12:34:00 +00:00
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_DB=${POSTGRES_DB:-maybe_db}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
2024-11-22 23:10:51 +00:00
healthcheck:
2024-11-25 12:34:00 +00:00
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
2024-11-22 23:10:51 +00:00
interval: 5s
2024-11-25 12:34:00 +00:00
timeout: 20s
retries: 10