-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.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
45
46
47
48
49
50
services:
pypnm-api:
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: "3.12"
image: pypnm:latest
ports:
- "${PYPNM_PORT:-8000}:8000"
volumes:
- pypnm_config:/app/config
- pypnm_logs:/app/logs
- pypnm_data:/app/.data
- pypnm_output:/app/output
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/docs').read()\""]
interval: 10s
timeout: 3s
retries: 15
config-menu:
image: pypnm:latest
command: ["python", "tools/system_config/menu.py"]
stdin_open: true
tty: true
restart: "no"
volumes:
- pypnm_config:/app/config
- pypnm_logs:/app/logs
- pypnm_data:/app/.data
- pypnm_output:/app/output
pypnm-sftp:
image: atmoz/sftp:alpine
profiles:
- sftp
command: "pypnm:changeme:10001:10001:/data"
volumes:
- pypnm_data:/data
ports:
- "2222:22"
restart: unless-stopped
volumes:
pypnm_config:
pypnm_logs:
pypnm_data:
pypnm_output: