-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 1.22 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
---
services:
web:
image: ghcr.io/dsgnr/portcheckerio-web:latest
container_name: web
environment:
- DEFAULT_HOST= # Optional, Populates a default host address value to be populataed in the in the UI input. Defaults to external/WAN IP.
- DEFAULT_PORT=443 # Optional, Populates a default port value to be populataed in the in the UI input
- API_URL= # Optional, the URL of the API service. The scheme and port is required. Defaults to http://api:8000 if not set.
ports:
- 8080:80
healthcheck:
test: ["CMD", "wget", "--spider", "-S", "http://127.0.0.1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
depends_on:
- api # Ensure api service is ready before web starts
networks:
- portchecker
api:
image: ghcr.io/dsgnr/portcheckerio-api:latest
container_name: api
environment:
- ALLOW_PRIVATE=false # Prevent usage of private IP addresses
ports:
- 8000:8000
healthcheck:
test: ["CMD", "wget", "--spider", "-S", "http://127.0.0.1:8000/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
- portchecker
networks:
portchecker:
driver: bridge