Skip to content

Commit

Permalink
remove unnecessary privileges (Redis)
Browse files Browse the repository at this point in the history
* pin Redis to v7 (BSD license)
* enable release asset functionality
  • Loading branch information
ab77 committed May 23, 2024
1 parent 007e4c9 commit 367e9ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ restart: ## Restart all services
.PHONY: update
update: # Pull and deploy latest changes from git
@git pull
@(MAKE) up
@$(MAKE) up

.PHONY: destroy ## Stop and remove any existing containers and volumes
destroy:
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ services:
*with-default-privileges,
*with-default-volumes,
]
image: balena/open-balena-api:v22.0.0
image: balena/open-balena-api:v22.2.0
depends_on:
- db
- redis
Expand Down Expand Up @@ -110,6 +110,8 @@ services:
TRUST_PROXY: 172.16.0.0/12
VPN_PORT: 443
WEBRESOURCES_S3_BUCKET: web-resources
WEBRESOURCES_S3_REGION: "us-east-1" # this is required for minio
HIDE_UNVERSIONED_ENDPOINT: "false"

# https://github.com/balena-io/open-balena-registry
registry:
Expand Down Expand Up @@ -187,10 +189,8 @@ services:
# https://hub.docker.com/_/redis
redis:
<<: *base-service
image: redis:alpine
cap_add:
- SYS_RESOURCE
- SYS_ADMIN
# https://redis.io/blog/what-redis-license-change-means-for-our-managed-service-providers/
image: redis:7-alpine
volumes:
- redis-data:/data
healthcheck:
Expand Down

0 comments on commit 367e9ae

Please sign in to comment.