moved docker to services
This commit is contained in:
46
services/code-server/docker-compose.yaml
Normal file
46
services/code-server/docker-compose.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
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/host/repos/homesrv01.dev.lan/lib/homeAssistant/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/lib/mosquitto/volumes/config
|
||||
- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/lib/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
|
||||
9
services/code-server/docker-run.sh
Executable file
9
services/code-server/docker-run.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#! /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