installing Maybe in docker #1374
Replies: 3 comments 3 replies
-
Maybe needs a Postgres database to store information. The error message is saying that there's no host at the name Did you set up and configure the database? |
Beta Was this translation helpful? Give feedback.
-
I used the docker compose file found in the repository for my synology nas, and I don't have any problems running maybe. Here is my compose file, and I use the .env file for variables. For context, I created a stack in portaient instead of using the container manager from synology, but it should work the same way. services:
app:
image: ghcr.io/maybe-finance/maybe:latest
container_name: maybe
volumes:
- /volume1/docker/maybe/data:/rails/storage:rw
restart: unless-stopped
env_file:
- stack.env
environment:
SELF_HOSTED: "true"
RAILS_FORCE_SSL: "false"
RAILS_ASSUME_SSL: "false"
SYNTH_API_KEY: ${SYNTH_API_KEY:?}
GOOD_JOB_EXECUTION_MODE: async
SECRET_KEY_BASE: ${SECRET_KEY_BASE:?}
DB_PORT: ${DB_PORT:-5432}
DB_HOST: ${DB_HOST:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-maybe_production}
POSTGRES_USER: ${POSTGRES_USER:-maybe_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
PUID: 1026
PGID: 100
TZ: Europe/Zurich
network_mode: host
depends_on:
postgres:
condition: service_healthy
ports:
- 3000:3000
postgres:
image: postgres:16
container_name: maybe-db
restart: unless-stopped
volumes:
- /volume1/docker/maybe/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:-maybe_user}
POSTGRES_DB: ${POSTGRES_DB:-maybe_production}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
PGPORT: ${DB_PORT:-5432}
TZ: Europe/Zurich
ports:
- ${DB_PORT:-5432}:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
interval: 5s
timeout: 5s
retries: 5
network_mode: host
volumes:
db: |
Beta Was this translation helpful? Give feedback.
-
So i was able to get the stack deployed....but getting this error in the logs....cant figure out a fix..
=> Booting Puma
Exiting from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in require' from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'from /usr/local/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /rails/bin/rails:4:in '=> Booting Puma => Rails 7.2.1.2 application starting in production => Run bin/rails server --help for more startup optionsI, [2024-10-28T19:29:58.565092 #1] INFO -- : [GoodJob] [1] GoodJob 4.4.2 started scheduler with queues=* max_threads=5. Puma starting in single mode...
Exiting from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in require' from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'from /usr/local/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /rails/bin/rails:4:in '
|
Beta Was this translation helpful? Give feedback.
-
Hello all..
I am trying to install Maybe on my docker instance on my Synology NAS.....this is my compose file...
https://pastebin.com/y6dn0H5m
The container installs but it stays in starting status and get the following errors in the logs...
https://pastebin.com/3y9YrvKU
Not sure how to fix this! Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions