From d0b6f2d572bd5f49d213d969281e585380bf0b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 25 Aug 2024 11:32:53 +0100 Subject: [PATCH] removed code-server from host responsibility --- README.md | 69 +++++++++++++++++++++--- services/code-server/docker-compose.yaml | 46 ---------------- services/code-server/docker-run.sh | 11 ---- 3 files changed, 61 insertions(+), 65 deletions(-) delete mode 100644 services/code-server/docker-compose.yaml delete mode 100755 services/code-server/docker-run.sh diff --git a/README.md b/README.md index 29862ef..1ab8e2f 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,11 @@ Welcome to homesrv01.dev.lan git page. - [nginx](#nginx) - [Setup \& Update](#setup--update-1) - [code-server](#code-server) - - [Setup \& Update](#setup--update-2) - - [home assistant](#home-assistant) + - [Home Assistant](#home-assistant) - [LMS](#lms) - [Mosquitto](#mosquitto) - [Wyoming](#wyoming) - + - [Zigbee2mqtt](#zigbee2mqtt) ## OS @@ -125,7 +124,7 @@ maintained by ansible myInfra.docker.promtail role #### Setup & Update -mantained by ansible myInfra.docker.telegraf role +maintained by ansible myInfra.docker.telegraf role ### nginx @@ -137,13 +136,61 @@ services/nginx/docker-run.sh ### code-server -#### Setup & Update +for more flexibility on bind mount stack is maintained directly on portainer (stack name: code-server). -``` bash -services/code-server/docker-run.sh +docker-compose.yml example. + +```yaml +version: '3' +services: + code-server: + container_name: code + image: lscr.io/linuxserver/code-server:latest + environment: + - PUID=0 + - PGID=0 + - TZ=Europe/London + - PASSWORD=${CODESERVER_PASSWORD} + - DEFAULT_WORKSPACE=/config/workspace + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - code-server_config:/config + - code-server_root:/root + - has_config:/config/workspace/has/volumes/config + - hostfs:/mnt/hostfs + #- ./../nginx/volumes/nginx_conf:/config/workspace/host/repos/homesrv01.dev.lan/services/nginx/volumes/nginx_conf + #- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config + #- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/data + #- zigbee2mqtt_data:/config/workspace/host/repos/homesrv01.dev.lan/services/zigbee2mqtt/volumes/data + - hostfs:/mnt/hostfs + networks: + - code + - reverseproxy_public + ports: + - 8444:8443 + restart: unless-stopped +volumes: +# zigbee2mqtt_data: +# name: zigbee2mqtt_data +# external: true + code-server_config: + code-server_root: + has_config: + name: has_app_config + external: true + hostfs: + external: true + #mosquitto_config: + # external: true + #mosquitto_data: + # external: true +networks: + code: + reverseproxy_public: + external: true ``` -### home assistant +### Home Assistant [Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant) @@ -162,3 +209,9 @@ services/code-server/docker-run.sh [Docker compose](./services/wyoming/docker-compose.yaml) Currently using portainer stack with git reference to this repo. + +### Zigbee2mqtt + +[Docker compose](./services/zigbee2mqtt//docker-compose.yaml) + +Currently using portainer stack with git reference to this repo. diff --git a/services/code-server/docker-compose.yaml b/services/code-server/docker-compose.yaml deleted file mode 100644 index decea91..0000000 --- a/services/code-server/docker-compose.yaml +++ /dev/null @@ -1,46 +0,0 @@ -version: '3' -services: - code-server: - container_name: code - image: lscr.io/linuxserver/code-server:latest - environment: - - PUID=0 - - PGID=0 - - TZ=Europe/London - - PASSWORD=${CODESERVER_PASSWORD} - - DEFAULT_WORKSPACE=/config/workspace - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - code-server_config:/config - - code-server_root:/root - - has_config:/config/workspace/has/volumes/config - - ./../nginx/volumes/nginx_conf:/config/workspace/host/repos/homesrv01.dev.lan/services/nginx/volumes/nginx_conf - #- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config - #- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/data - - zigbee2mqtt_data:/config/workspace/host/repos/homesrv01.dev.lan/services/zigbee2mqtt/volumes/data - - hostfs:/mnt/hostfs - networks: - - code - - reverseproxy_public - ports: - - 8444:8443 - restart: unless-stopped -volumes: - zigbee2mqtt_data: - name: zigbee2mqtt_data - external: true - code-server_config: - code-server_root: - has_config: - name: has_app_config - external: true - hostfs: - external: true - #mosquitto_config: - # external: true - #mosquitto_data: - # external: true -networks: - code: - reverseproxy_public: - external: true diff --git a/services/code-server/docker-run.sh b/services/code-server/docker-run.sh deleted file mode 100755 index b70adeb..0000000 --- a/services/code-server/docker-run.sh +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/bash - -scriptPath="$(dirname "$(readlink -f "$0")")" -currentPath=$PWD - -cd $scriptPath -docker compose pull -docker compose up --force-recreate --build -d - -cd $currentPath -