feat: add redis to migrate container

* feat: add Redis to migrate container
This commit is contained in:
brunomiguelpinto 2024-08-08 14:16:43 +01:00 committed by GitHub
parent 9c46eacd5b
commit 02dd8f4e04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,6 +296,7 @@ services:
image: getlago/api:v1.8.2
depends_on:
- db
- redis
command: ["./scripts/start.migrate.sh"]
volumes:
- lago_storage_data:/app/storage
@ -305,3 +306,5 @@ services:
- RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded
- LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}?search_path=${POSTGRES_SCHEMA:-public}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}