Fix network configuration for TeleBot connectivity

- Added littleshop-network to LittleShop container
- Ensures TeleBot can access LittleShop API
- Maintains bridge network for BunkerWeb access
This commit is contained in:
SysAdmin 2025-09-24 14:29:47 +01:00
parent 6f3314de26
commit e7d97f581c

View File

@ -43,7 +43,9 @@ services:
- /opt/littleshop/data:/app/data - /opt/littleshop/data:/app/data
- /opt/littleshop/uploads:/app/wwwroot/uploads - /opt/littleshop/uploads:/app/wwwroot/uploads
- /opt/littleshop/logs:/app/logs - /opt/littleshop/logs:/app/logs
network_mode: bridge # Use default bridge to communicate with other containers networks:
- littleshop-network # Shared network for container communication
- bridge # Keep bridge for BunkerWeb access
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/catalog/products"] test: ["CMD", "curl", "-f", "http://localhost:8080/api/catalog/products"]
interval: 30s interval: 30s
@ -64,3 +66,9 @@ services:
- "bunkerweb.REVERSE_PROXY_HOST=http://littleshop-admin:5000" - "bunkerweb.REVERSE_PROXY_HOST=http://littleshop-admin:5000"
- "bunkerweb.AUTO_LETS_ENCRYPT=yes" - "bunkerweb.AUTO_LETS_ENCRYPT=yes"
- "bunkerweb.USE_MODSECURITY=yes" - "bunkerweb.USE_MODSECURITY=yes"
networks:
littleshop-network:
external: true
bridge:
external: true