removed code-server from host responsibility
All checks were successful
deploy / deploy (push) Successful in 2s
All checks were successful
deploy / deploy (push) Successful in 2s
This commit is contained in:
69
README.md
69
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.
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user