Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(self-hosted): SELinux labels and security opt (#33603)

Arun Babu Neelicattu6955350359d8
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index ff8888d9823..6bf9eae7598 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -58,7 +58,7 @@ services:
- ${KONG_HTTPS_PORT}:8443/tcp
volumes:
# https://github.com/supabase/supabase/issues/12661
- - ./volumes/api/kong.yml:/home/kong/temp.yml:ro
+ - ./volumes/api/kong.yml:/home/kong/temp.yml:ro,z
depends_on:
analytics:
condition: service_healthy
@@ -446,8 +446,8 @@ services:
image: timberio/vector:0.28.1-alpine
restart: unless-stopped
volumes:
- - ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro
- - ${DOCKER_SOCKET_LOCATION}:/var/run/docker.sock:ro
+ - ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro,z
+ - ${DOCKER_SOCKET_LOCATION}:/var/run/docker.sock:ro,z
healthcheck:
test:
[
@@ -468,6 +468,8 @@ services:
"--config",
"/etc/vector/vector.yml"
]
+ security_opt:
+ - "label=disable"
# Update the DATABASE_URL if you are using an external Postgres database
supavisor:
@@ -478,7 +480,7 @@ services:
- ${POSTGRES_PORT}:5432
- ${POOLER_PROXY_PORT_TRANSACTION}:6543
volumes:
- - ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro
+ - ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro,z
healthcheck:
test:
[