libremdb/docker-compose.example.yml
ngn bde980536d
All checks were successful
ups / ups (push) Successful in 46s
fix the example docker compose file
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:51:13 +03:00

32 lines
747 B
YAML

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