misc(docker): Add Redis password support (#143)

This commit is contained in:
Jérémy Denquin 2022-11-30 20:08:06 +01:00 committed by GitHub
parent 5328de20f1
commit 8f3aa57f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 8 deletions

2
api

@ -1 +1 @@
Subproject commit 33a45b891b654be1a8ae6e6a0daa53e018611440
Subproject commit f32b9a856bc8216171265c0e68fa4477ac3593e3

View File

@ -30,7 +30,7 @@ services:
api:
container_name: lago-api
image: getlago/api-arm64v8:v0.16.0-alpha
image: getlago/api-arm64v8:v0.16.1-alpha
restart: unless-stopped
depends_on:
- db
@ -40,6 +40,7 @@ services:
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
- RAILS_ENV=production
- SENTRY_DSN=${SENTRY_DSN}
@ -61,6 +62,7 @@ services:
- LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
- LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT}
- GOCARDLESS_CLIENT_ID=${GOCARDLESS_CLIENT_ID}
- GOCARDLESS_CLIENT_SECRET=${GOCARDLESS_CLIENT_SECRET}
@ -107,7 +109,7 @@ services:
api-worker:
container_name: lago-worker
image: getlago/api-arm64v8:v0.16.0-alpha
image: getlago/api-arm64v8:v0.16.1-alpha
restart: unless-stopped
depends_on:
- api
@ -116,6 +118,7 @@ services:
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
- RAILS_ENV=production
- SENTRY_DSN=${SENTRY_DSN}
@ -135,13 +138,14 @@ services:
- LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
- LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT}
- GOCARDLESS_CLIENT_ID=${GOCARDLESS_CLIENT_ID}
- GOCARDLESS_CLIENT_SECRET=${GOCARDLESS_CLIENT_SECRET}
api-clock:
container_name: lago-clock
image: getlago/api-arm64v8:v0.16.0-alpha
image: getlago/api-arm64v8:v0.16.1-alpha
restart: unless-stopped
depends_on:
- api
@ -150,6 +154,7 @@ services:
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
- RAILS_ENV=production
- SENTRY_DSN=${SENTRY_DSN}

View File

@ -31,7 +31,7 @@ services:
api:
container_name: lago-api
image: getlago/api:v0.16.0-alpha
image: getlago/api:v0.16.1-alpha
restart: unless-stopped
depends_on:
- db
@ -41,6 +41,7 @@ services:
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
- RAILS_ENV=production
- RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true}
@ -63,6 +64,7 @@ services:
- LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
- LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT}
- GOCARDLESS_CLIENT_ID=${GOCARDLESS_CLIENT_ID}
- GOCARDLESS_CLIENT_SECRET=${GOCARDLESS_CLIENT_SECRET}
@ -113,7 +115,7 @@ services:
api-worker:
container_name: lago-worker
image: getlago/api:v0.16.0-alpha
image: getlago/api:v0.16.1-alpha
restart: unless-stopped
depends_on:
- api
@ -122,6 +124,7 @@ services:
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
- RAILS_ENV=production
- RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true}
@ -142,6 +145,7 @@ services:
- LAGO_GCS_BUCKET=${LAGO_GCS_BUCKET:-}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
- LAGO_REDIS_CACHE_PASSWORD=${LAGO_REDIS_CACHE_PASSWORD}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT}
- GOCARDLESS_CLIENT_ID=${GOCARDLESS_CLIENT_ID}
- GOCARDLESS_CLIENT_SECRET=${GOCARDLESS_CLIENT_SECRET}
@ -150,7 +154,7 @@ services:
api-clock:
container_name: lago-clock
image: getlago/api:v0.16.0-alpha
image: getlago/api:v0.16.1-alpha
restart: unless-stopped
depends_on:
- api
@ -159,6 +163,7 @@ services:
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
- RAILS_ENV=production
- RAILS_LOG_TO_STDOUT=${LAGO_RAILS_STDOUT:-true}

2
front

@ -1 +1 @@
Subproject commit f1d3c609bb2854957622a8e8870a9c6989121a48
Subproject commit 8b493503de0f52571a26786eaf4106cb45cb6961