When we use GitHub references in the Gemfile, we need to use `bundle exec rake` instead of `rake` to avoid the error `rake aborted! LoadError: cannot load such file`. Currently, the "sequel" gem is using a GitHub reference in the Gemfile. Since we change references over time, using "bundle exec rake" is a better choice. Fixes #2325
41 lines
862 B
YAML
41 lines
862 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15.4
|
|
container_name: ubicloud-postgres
|
|
env_file: .env
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
- ./init_db.sh:/docker-entrypoint-initdb.d/init_db.sh
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
db-migrator:
|
|
image: ubicloud/ubicloud:latest
|
|
container_name: ubicloud-db-migrator
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
env_file: .env
|
|
command: bundle exec rake dev_up
|
|
|
|
app:
|
|
image: ubicloud/ubicloud:latest
|
|
container_name: ubicloud-app
|
|
depends_on:
|
|
db-migrator:
|
|
condition: service_completed_successfully
|
|
env_file: .env
|
|
ports:
|
|
- 3000:3000
|
|
command: foreman start
|
|
|
|
volumes:
|
|
postgres:
|