You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
version: '3.7'
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: maybe_web_1
|
|
APP_PORT: 3063
|
|
|
|
web:
|
|
image: ghcr.io/maybe-finance/maybe:0.1.0@sha256:832044558ff87ee3e4180f566a4595b10cb93d64d8e90d8995a89b4f659bbe38
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/rails:/rails/storage
|
|
environment:
|
|
SELF_HOSTING_ENABLED: "true"
|
|
PORT: 3063
|
|
DB_HOST: db
|
|
DB_PORT: 5432
|
|
DATABASE_URL: postgres://maybe:maybe@db:5432/maybe
|
|
RAILS_FORCE_SSL: "false"
|
|
RAILS_ASSUME_SSL: "false"
|
|
POSTGRES_DB: maybe
|
|
POSTGRES_USER: maybe
|
|
POSTGRES_PASSWORD: maybe
|
|
GOOD_JOB_EXECUTION_MODE: async
|
|
SECRET_KEY_BASE: $APP_SEED
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
db:
|
|
image: postgres:16@sha256:1bf73ccae25238fa555100080042f0b2f9be08eb757e200fe6afc1fc413a1b3c
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_DB: maybe
|
|
POSTGRES_USER: maybe
|
|
POSTGRES_PASSWORD: maybe
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U maybe']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|