Skip to content

Commit

Permalink
Fix minio access
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Jul 16, 2024
1 parent d439607 commit cae9fb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/docker/plane/containers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ locals {
"GUNICORN_WORKERS=1",

### DB
"PGHOST=${docker_container.postgres.name}",
"DATABASE_URL=postgresql://plane:${random_password.db.result}@${docker_container.postgres.name}/plane",
"PGHOST=${docker_container.postgres.hostname}",
"DATABASE_URL=postgresql://plane:${random_password.db.result}@${docker_container.postgres.hostname}/plane",

### REDIS
"REDIS_HOST=${docker_container.valkey.name}",
"REDIS_PORT=6379",
"REDIS_URL=redis://${docker_container.valkey.name}:6379",
"REDIS_URL=redis://${docker_container.valkey.hostname}:6379",

### APPLICATION SECRET
"SECRET_KEY=${random_password.application_secret.result}",
Expand All @@ -57,8 +57,8 @@ locals {
"AWS_REGION=",
"AWS_ACCESS_KEY_ID=${random_password.minio_access_key_id.result}",
"AWS_SECRET_ACCESS_KEY=${random_password.minio_secret_access_key.result}",
"AWS_S3_ENDPOINT_URL=${docker_container.minio.name}:9000",
"AWS_S3_BUCKET_NAME=plane-uploads",
"AWS_S3_ENDPOINT_URL=http://${docker_container.minio.hostname}:9000",
"AWS_S3_BUCKET_NAME=uploads",

### ADMIN / SPACE URLS
"ADMIN_BASE_URL=",
Expand Down Expand Up @@ -113,7 +113,7 @@ resource "docker_container" "minio" {
name = "plane_minio"
restart = "always"

command = ["server", "/export", "--console-address", ":9090"]
command = ["server", "/export", "--console-address", ":9090", "--address", ":9000"]

env = local.minio_env

Expand Down Expand Up @@ -344,7 +344,7 @@ resource "docker_container" "plane_proxy" {

env = [
"VIRTUAL_HOST=plane.code0.tech",
"BUCKET_NAME=plane-uploads",
"BUCKET_NAME=uploads",
"FILE_SIZE_LIMIT=5242880"
]

Expand Down

0 comments on commit cae9fb1

Please sign in to comment.