diff --git a/docker-compose.yml b/docker-compose.yml index 87b9f5a..30c970a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme} PGDATA: /data/postgres PGPORT: ${POSTGRES_PORT:-5432} + POSTGRES_SCHEMA: public volumes: - lago_postgres_data:/data/postgres ports: @@ -48,7 +49,7 @@ services: # start_interval: 2s environment: - 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} + - 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} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} @@ -139,7 +140,7 @@ services: test: ["CMD-SHELL", "bundle exec sidekiqmon | grep $(hostname) || exit 1"] environment: - 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} + - 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} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} @@ -183,7 +184,7 @@ services: # command: ["./scripts/start.events.worker.sh"] # environment: # - 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} + # - 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} # - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} @@ -223,7 +224,7 @@ services: command: ["./scripts/start.clock.sh"] environment: - 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} + - 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} - SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}