Fix all network bridge

This commit is contained in:
ChenKaiLiuG
2025-12-24 16:04:09 +08:00
parent a43a6bf51e
commit 2f01362e68
4 changed files with 53 additions and 5 deletions

View File

@@ -5,6 +5,8 @@ services:
image: mariadb:10.6
container_name: nextcloud_db
restart: unless-stopped
networks:
- nextcloud_network
volumes:
- nextcloud_db:/var/lib/mysql
environment:
@@ -20,6 +22,9 @@ services:
ports:
- "6900:80" # HTTP (內網)
- "6950:443" # HTTPS (供反向代理用,可透過 cert 處理)
networks:
- nextcloud_network
- webproxy
volumes:
- /mnt/data/External/Nextcloud_files:/var/www/html/data
- nextcloud_data:/var/www/html/
@@ -36,3 +41,9 @@ services:
volumes:
nextcloud_db:
nextcloud_data:
networks:
nextcloud_network:
driver: bridge
webproxy:
external: true