fix the example docker compose file
All checks were successful
ups / ups (push) Successful in 46s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-05-13 01:51:13 +03:00
parent e6ebf6ca78
commit bde980536d
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -3,16 +3,16 @@ services:
container_name: libremdb container_name: libremdb
image: git.ngn.tf/ngn/libremdb image: git.ngn.tf/ngn/libremdb
ports: ports:
- 80:3000 - 80:3000
env_file: .env.example env_file: .env.example
depends_on: depends_on:
- libremdb_redis - libremdb_redis
tmpfs: tmpfs:
- /opt/app/.next/cache/:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev - /app/.next/cache/:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop:
- ALL - ALL
user: 65534:65534 # equivalent to the nobody user user: 65534:65534 # equivalent to the nobody user
read_only: true read_only: true
restart: unless-stopped restart: unless-stopped
@ -22,10 +22,10 @@ services:
image: redis image: redis
user: nobody user: nobody
tmpfs: tmpfs:
- /data:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev - /data:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop:
- ALL - ALL
read_only: true read_only: true
restart: unless-stopped restart: unless-stopped