chore: import MCTF services
- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
This commit is contained in:
commit
13f936bee9
1222 files changed
+21280
No files matched your search
Executable
+80
@@ -0,0 +1,80 @@
|
||||
name: chrome-ledger
|
||||
|
||||
services:
|
||||
service:
|
||||
build: .
|
||||
command: ["python", "run.py"]
|
||||
environment:
|
||||
LEDGER_DB: "/var/lib/chrome-ledger/ledger.sqlite3"
|
||||
PYTHONDONTWRITEBYTECODE: "1"
|
||||
PYTHONUNBUFFERED: "1"
|
||||
ports:
|
||||
- "8081:8080"
|
||||
volumes:
|
||||
- ledger_data:/var/lib/chrome-ledger
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:size=64m,mode=1777
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
stop_grace_period: 20s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 512M
|
||||
pids: 256
|
||||
reservations:
|
||||
cpus: "0.25"
|
||||
memory: 128M
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/login', timeout=3).close()"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
start_period: 15s
|
||||
retries: 3
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
cleaner:
|
||||
build: ./cleaner
|
||||
depends_on:
|
||||
- service
|
||||
environment:
|
||||
LEDGER_DB: "/var/lib/chrome-ledger/ledger.sqlite3"
|
||||
PYTHONDONTWRITEBYTECODE: "1"
|
||||
PYTHONUNBUFFERED: "1"
|
||||
volumes:
|
||||
- ledger_data:/var/lib/chrome-ledger
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:size=16m,mode=1777
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.25"
|
||||
memory: 64M
|
||||
pids: 64
|
||||
reservations:
|
||||
cpus: "0.05"
|
||||
memory: 16M
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
volumes:
|
||||
ledger_data:
|
||||
name: chrome-ledger-data
|
||||
Reference in new issue
Block a user