feat: support named pipe from container to host
fix: stop failed to stop continer and default networkmaster
parent
a108a88a4d
commit
16ab43f057
|
@ -1,4 +1,5 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
code-server:
|
||||
image: ghcr.io/linuxserver/code-server
|
||||
|
@ -13,7 +14,12 @@ services:
|
|||
volumes:
|
||||
- ${Config}:/config
|
||||
- ${Files}:/config/workspace
|
||||
|
||||
- ${Deploy}:/config/workspace/.deploy
|
||||
ports:
|
||||
- ${Port}:8443
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
# networks indentation moved to top level
|
||||
default:
|
||||
name: ${Name}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
# will user filename unless second argument is passed to make-env-file
|
||||
# Name=containername
|
||||
# USER=jim
|
||||
# TZ=America/Los_Angles
|
||||
# Password=jimshoe
|
||||
Parent_Folder=/data
|
||||
Files=/data/test-files # will be /data/<name> by default
|
||||
# Parent_Folder=/data
|
||||
#Files= # will be /files by default
|
||||
Port=4321 # should be changed to avoid conflict with other containers
|
||||
|
|
|
@ -27,10 +27,14 @@ ename=${2:-$(basename "${1%.*}")}
|
|||
__ce_Name=${Name:-$ename-files-editor}
|
||||
__ce_TZ=${TZ:-"America/Los_Angeles"}
|
||||
__ce_Password=${Password:-password}
|
||||
__ce_Deploy=${WEB_GENERATOR:-/opt/web-generator/deploy/$1}
|
||||
if [[ ! -p $__ce_Deploy ]]; then
|
||||
mkfifo $__ce_Deploy
|
||||
fi
|
||||
Parent_Folder=${Parent_Folder:-${HOME}/.local/share/code-edit}
|
||||
__ce_Files=${Files:-${Parent_Folder}/$ename/files}
|
||||
__ce_Files=${Files:-${Parent_Folder}/$1/files}
|
||||
mkdir -p ${__ce_Files}
|
||||
__ce_Config=${Config:-${Parent_Folder}/$ename/config}
|
||||
__ce_Config=${Config:-${Parent_Folder}/$1/config}
|
||||
mkdir -p ${__ce_Config}
|
||||
__ce_Port=${Port:-8443}
|
||||
|
||||
|
|
Loading…
Reference in New Issue