-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (43 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
49 lines (43 loc) · 1.29 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
45
46
47
48
49
services:
pvetui:
build:
context: .
dockerfile: Dockerfile
args:
USER_ID: ${UID:-1000}
GROUP_ID: ${GID:-1000}
image: pvetui:latest
container_name: pvetui
restart: "no" # Don't restart for interactive TUI apps
# Environment variables are loaded from the .env file
environment:
- PVETUI_ADDR=${PVETUI_ADDR}
- PVETUI_USER=${PVETUI_USER}
- PVETUI_PASSWORD=${PVETUI_PASSWORD}
- PVETUI_REALM=${PVETUI_REALM}
- PVETUI_TOKEN_ID=${PVETUI_TOKEN_ID}
- PVETUI_TOKEN_SECRET=${PVETUI_TOKEN_SECRET}
- PVETUI_API_PATH=${PVETUI_API_PATH:-/api2/json}
- PVETUI_INSECURE=${PVETUI_INSECURE:-false}
- PVETUI_DEBUG=${PVETUI_DEBUG:-false}
- PVETUI_CACHE_DIR=${PVETUI_CACHE_DIR:-/app/cache}
- PVETUI_SSH_USER=${PVETUI_SSH_USER}
# Volumes for persistence
volumes:
- ./cache:/app/cache
# TTY and interactive for TUI applications
tty: true
stdin_open: true
# Security options
security_opt:
- no-new-privileges:true
# Resource limits
deploy:
resources:
limits:
memory: 256M
cpus: '0.5'
reservations:
memory: 64M
cpus: '0.1'
# Note: For TUI applications, use 'docker-compose run' (not 'docker-compose up')