-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
39 lines (38 loc) · 1.02 KB
/
docker-compose.yml
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
---
services:
web:
image: ghcr.io/dsgnr/portcheckerio-web:latest
container_name: web
environment:
- DEFAULT_PORT=443 # Optional, Populates a default port value to be populataed in the in the UI input
- GOOGLE_ANALYTICS= # Optional, set for Google Analytics integration
ports:
- 8080:80
healthcheck:
test: ["CMD", "wget", "--spider", "-S", "http://localhost"]
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://localhost:8000/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
- portchecker
networks:
portchecker:
driver: bridge