2024-05-07 00:52:14 +02:00
|
|
|
services:
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: ghcr.io/maybe-finance/maybe:latest
|
2024-05-10 06:10:23 -04:00
|
|
|
volumes:
|
|
|
|
- ./storage:/rails/storage
|
2024-05-07 00:52:14 +02:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:3000:3000
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
2024-05-10 06:10:23 -04:00
|
|
|
SELF_HOSTING_ENABLED: true
|
|
|
|
DB_HOST: postgres
|
2024-05-07 00:52:14 +02:00
|
|
|
RAILS_FORCE_SSL: false
|
|
|
|
RAILS_ASSUME_SSL: false
|
2024-05-10 06:10:23 -04:00
|
|
|
POSTGRES_USER: postgres
|
|
|
|
GOOD_JOB_EXECUTION_MODE: async
|
2024-05-07 00:52:14 +02:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:16
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
environment:
|
2024-05-10 06:10:23 -04:00
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-maybe_production}
|
2024-05-07 00:52:14 +02:00
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER" ]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
volumes:
|
2024-05-10 06:10:23 -04:00
|
|
|
postgres-data:
|