mirror of
https://github.com/mskatoni/ni-mail.git
synced 2026-08-29 12:07:24 +08:00
30 lines
523 B
YAML
30 lines
523 B
YAML
services:
|
|
ni-mail:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: ni-mail
|
|
restart: unless-stopped
|
|
stop_grace_period: 30s
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ni-mail-data:/app/data
|
|
environment:
|
|
- TZ=
|
|
ports:
|
|
- ":8080"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
mem_limit: 512m
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
cap_drop:
|
|
- ALL
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:size=64m
|
|
|
|
volumes:
|
|
ni-mail-data:
|