feat(wip): docker ui only

This commit is contained in:
Jacky 2025-04-20 22:02:29 +08:00
parent c62fd25b2e
commit d4a4ed1e1c
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
43 changed files with 1269 additions and 372 deletions

View file

@ -7,6 +7,7 @@ services:
- ../..:/workspaces:cached
- ./go-path:/root/go
- ./data/nginx:/etc/nginx
- /var/run/docker.sock:/var/run/docker.sock
command: sleep infinity
environment:
- NGINX_UI_CERT_CA_DIR=https://pebble:14000/dir
@ -25,6 +26,28 @@ services:
- nginx-ui
networks:
nginxui:
nginx-ui-3:
image: nginx-ui-dev
container_name: nginx-ui-3
volumes:
- ../..:/workspaces:cached
- ./data/nginx-ui-3/nginx:/etc/nginx
- ./data/nginx-ui-3/nginx-ui:/etc/nginx-ui
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /workspaces/nginx-ui
command: ./.devcontainer/node-supervisor.sh
depends_on:
- nginx-ui
networks:
nginxui:
nginx:
image: nginx-ui-dev
container_name: nginx
volumes:
- ./data/nginx-ui-3/nginx:/etc/nginx
command: sleep infinity
networks:
nginxui:
pebble:
image: ghcr.io/letsencrypt/pebble:latest
volumes:

View file

@ -6,4 +6,4 @@ if [ "$(ls -A /etc/nginx)" = "" ]; then
fi
# start nginx
nginx -g "daemon off;"
nginx

View file

@ -3,7 +3,7 @@
# install air
go install github.com/air-verse/air@latest
# install zsh-autosuggestions
install zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
if ! grep -q "zsh-autosuggestions" ~/.zshrc; then