diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ce824b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.log +*.db \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 61e271c..0860a47 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ services: edge-proxy: image: 192.168.0.75:3000/guanyuankai/bonus-edge-proxy:latest container_name: edge-proxy-prod + restart: unless-stopped platform: linux/arm64 network_mode: "host" privileged: true @@ -21,12 +22,7 @@ services: - "110" - "29" volumes: - # ----------------- (关键变更) ----------------- - # 不再使用 - ./prod_config:/app/config - # 改为使用 Docker 命名卷 'prod_config_data' - # 这将自动使用镜像中的 /app/config 作为初始数据 - prod_config_data:/app/config - # ----------------- (变更结束) ----------------- - /tmp/.X11-unix:/tmp/.X11-unix:rw environment: @@ -40,6 +36,7 @@ services: media-gateway: image: bluenviron/mediamtx:latest container_name: media-gateway + restart: unless-stopped network_mode: "host" privileged: true volumes: @@ -56,8 +53,6 @@ services: - ./mosquitto/data:/mosquitto/data - ./mosquitto/log:/mosquitto/log -# ----------------- (关键变更) ----------------- -# 在 'services:' 之外的顶层定义 'prod_config_data' + volumes: - prod_config_data: -# ----------------- (变更结束) ----------------- \ No newline at end of file + prod_config_data: \ No newline at end of file