Alteração de alguns arquivos para retirar do yaml o container Postgres pois ja tem um
This commit is contained in:
@@ -20,30 +20,9 @@ services:
|
||||
volumes:
|
||||
- ".:/app"
|
||||
- "bundle_cache:/usr/local/bundle"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -b 0.0.0.0"
|
||||
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
environment:
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
volumes:
|
||||
- "pg_data:/var/lib/postgresql/data"
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
# NOTA: Se o banco existente (db_reem_simplerout_2026) estiver em servidor
|
||||
# separado, remova este serviço e configure DB_HOST no .env apontando para
|
||||
# o IP/hostname correto do servidor PostgreSQL existente.
|
||||
# O banco PostgreSQL já existe externamente.
|
||||
# Configure DB_HOST no .env com o IP/hostname do seu servidor PostgreSQL.
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
bundle_cache:
|
||||
|
||||
Reference in New Issue
Block a user