-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
46 lines (43 loc) · 1.13 KB
/
Copy pathcompose.yml
File metadata and controls
46 lines (43 loc) · 1.13 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
services:
# Backend Service (Node.js App)
backend:
image: mrunknownde/utools-backend
container_name: utools_backend
restart: unless-stopped
user: "0" # Run as root so ASN cache volume is writable
environment:
NODE_ENV: production
PORT: 3000
LOG_LEVEL: info
PING_COUNT: 4
SENTRY_DSN: "https://[email protected]/4509062020333568"
# ASN Cache directory (filesystem persistence across restarts)
ASN_CACHE_DIR: /app/asn-cache
volumes:
# Persistent ASN lookup cache — survives container restarts
- asn_cache:/app/asn-cache
dns:
- 1.1.1.1
- 1.0.0.1
- 8.8.8.8
- 8.8.4.4
networks:
- utools_network
# Frontend Service (Nginx)
frontend:
image: mrunknownde/utools-frontend
container_name: utools_frontend
restart: unless-stopped
ports:
- "8080:80"
depends_on:
- backend
networks:
- utools_network
networks:
utools_network:
driver: bridge
# Named volume — ASN cache persists across container restarts
volumes:
asn_cache:
driver: local