libremdb/docker-compose.example.yml
ngn ff8ca7db4a
[skip ci] fix example docker compose
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 23:37:48 +03:00

32 lines
736 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:
- /opt/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