fix maybe
This commit is contained in:
@@ -6,21 +6,20 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
maybe:
|
maybe:
|
||||||
image: "ghcr.io/maybe-finance/maybe:latest"
|
image: ghcr.io/maybe-finance/maybe:latest
|
||||||
volumes:
|
volumes:
|
||||||
- "app-storage:/rails/storage"
|
- app_storage:/rails/storage
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_MAYBE
|
- SERVICE_FQDN_MAYBE
|
||||||
- SELF_HOSTED=true
|
- SELF_HOSTED=true
|
||||||
- RAILS_FORCE_SSL=false
|
- RAILS_FORCE_SSL=${RAILS_FORCE_SSL:-false}
|
||||||
- RAILS_ASSUME_SSL=false
|
- RAILS_ASSUME_SSL=${RAILS_ASSUME_SSL:-false}
|
||||||
- GOOD_JOB_EXECUTION_MODE=async
|
- GOOD_JOB_EXECUTION_MODE=${GOOD_JOB_EXECUTION_MODE:-async}
|
||||||
- SECRET_KEY_BASE=$SERVICE_BASE64_64_SECRETKEYBASE
|
- SECRET_KEY_BASE=${SERVICE_BASE64_64_SECRETKEYBASE}
|
||||||
- DB_HOST=postgres
|
- DB_HOST=postgres
|
||||||
- POSTGRES_DB=${POSTGRES_DB:-maybe_production}
|
- POSTGRES_DB=${POSTGRES_DB:-maybe_db}
|
||||||
- POSTGRES_USER=${POSTGRES_USER:-maybe_user}
|
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -30,22 +29,17 @@ services:
|
|||||||
- curl
|
- curl
|
||||||
- "-f"
|
- "-f"
|
||||||
- "http://localhost:3000"
|
- "http://localhost:3000"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: "postgres:16"
|
image: postgres:16
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- "postgres-data:/var/lib/postgresql/data"
|
- maybe_postgres_data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER:-maybe_user}
|
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||||
- POSTGRES_DB=${POSTGRES_DB:-maybe_production}
|
- POSTGRES_DB=${POSTGRES_DB:-maybe_db}
|
||||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
- CMD-SHELL
|
|
||||||
- "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 20s
|
||||||
retries: 5
|
retries: 10
|
||||||
volumes:
|
|
||||||
app-storage: null
|
|
||||||
postgres-data: null
|
|
||||||
|
Reference in New Issue
Block a user