-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 873 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (34 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'
services:
discord-always-online:
build: .
container_name: discord-always-online
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
environment:
- TOKENS=${TOKENS}
- TOKEN=${TOKEN}
- WEBHOOK_URL=${WEBHOOK_URL}
- WEBHOOK_URL_LOW=${WEBHOOK_URL_LOW}
- PORT=${PORT:-3000}
- USE_INTERNAL_SCHEDULING=${USE_INTERNAL_SCHEDULING:-false}
- DASHBOARD_PASSWORD=${DASHBOARD_PASSWORD}
env_file:
- .env
# Security options
security_opt:
- no-new-privileges:true
# Read-only root filesystem (except for necessary writable paths)
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=10M
# Resource limits
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.1'
memory: 64M