Configure Linux host-network deployment

This commit is contained in:
2026-03-04 19:37:09 +08:00
parent 663999f173
commit feb99faaf3
4 changed files with 216 additions and 188 deletions

View File

@@ -2,16 +2,13 @@ services:
nginx:
image: nginx:alpine
container_name: sentinel-nginx
network_mode: host
restart: unless-stopped
ports:
- "8016:80"
depends_on:
- sentinel-app
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./frontend/dist:/etc/nginx/html/admin/ui:ro
networks:
- sentinel-net
sentinel-app:
image: key-ip-sentinel:latest
@@ -25,8 +22,9 @@ services:
- redis
- postgres
networks:
- sentinel-net
- shared_network
sentinel-net:
ipv4_address: 172.30.0.10
shared_network:
redis:
image: redis:7-alpine
@@ -66,5 +64,8 @@ volumes:
networks:
sentinel-net:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/24
shared_network:
external: true