-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (43 loc) · 1 KB
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
36
37
38
39
40
41
42
43
44
version: '3.9'
services:
systemd-monitor:
build:
context: .
dockerfile: Dockerfile
container_name: systemd-monitor
restart: always
ports:
- "5001:5001"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=https://0.0.0.0:5001
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
volumes:
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
- /var/log/journal:/var/log/journal:ro
- /sys:/sys:ro
- /proc:/proc:ro
- ./logs:/app/logs
privileged: true
cap_add:
- SYS_ADMIN
- SYS_PTRACE
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 512M
healthcheck:
test: ["CMD", "curl", "-f", "-k", "https://localhost:5001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"