-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhass-server.yaml
executable file
·193 lines (181 loc) · 4.88 KB
/
hass-server.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
- hosts: localhost
gather_facts: False
tasks:
- name: Create plexguide network
docker_network:
name: plexguide
###--- Home Assistant Setup ---###
- name: Setup Home Assistant
docker_container:
name: hass
image: homeassistant/home-assistant
pull: yes
volumes:
- /opt/appdata/hass/config:/config
- /etc/localtime:/etc/localtime:ro
restart_policy: always
state: started
env:
PUID: "1000"
GUID: "1000"
labels:
traefik.enable: "true"
# traefik.frontend.redirect.entryPoint: "https"
traefik.frontend.rule: "Host:home.wooster.xyz"
traefik.port: "8123"
traefik.docker.network: "plexguide"
ports:
- 8123:8123
networks:
- name: plexguide
aliases:
- hass
###--- MariaDb Setup ---###
# - name: Setup MariaDb for Home Assistant
# docker_container:
# name: mariadb_hass
# image: mariadb
# volumes:
# - mariadb:/var/lib/mysql
# - /etc/localtime:/etc/localtime:ro
# restart_policy: always
# environment:
# MYSQL_ROOT_PASSWORD: "woosterexposed"
# MYSQL_DATABASE: "homeassistant"
# MYSQL_USER: "hassdb"
# MYSQL_USER: "woosterexposed"
# networks:
# - name: plexguide
# aliases:
# - mariadb_hass
# state: started
##--- mosquitto Setup ---###
- name: Setup mosquitto
docker_container:
name: mosquitto
image: eclipse-mosquitto
volumes:
- /opt/appdata/mosquitto/config:/mosquitto/config
- /opt/appdata/mosquitto/data:/mosquitto/data
- /opt/appdata/mosquitto/log:/mosquitto/log
# - mosquitto_config:/mosquitto/config
# - mosquitto_data:/mosquitto/data
# - mosquitto_log:/mosquitto/log
# - /opt/appdata/mosquitto/mosquitto.conf:/mosquitto/mosquitto.conf
restart_policy: always
env:
PUID: "1000"
GUID: "1000"
# labels:
# traefik.enable: "true"
# traefik.frontend.redirect.entryPoint: "https"
# traefik.frontend.rule: "Host:mqtt.wooster.xyz"
# traefik.port: "1883"
ports:
- 1883:1883
# - 9001:9001
networks:
- name: plexguide
aliases:
- mosquitto
state: started
###--- TasmoAdmin Setup ---###
- name: Setup TasmoAdmin
docker_container:
name: tasmoadmin
image: raymondmm/tasmoadmin
volumes:
- /opt/appdata/tasmoadmin:/data
env:
PUID: "1000"
GUID: "1000"
labels:
traefik.enable: "true"
# traefik.frontend.redirect.entryPoint: "https"
traefik.frontend.rule: "Host:tasmoadmin.wooster.xyz"
traefik.port: "80"
traefik.docker.network: "plexguide"
networks:
- name: plexguide
aliases:
- tasmoadmin
state: started
restart_policy: unless-stopped
### --------- code-server --------------- ###
- name: Setup code-server
docker_container:
name: code-server
image: codercom/code-server
env:
PUID: "1000"
PGID: "1000"
labels:
traefik.enable: "true"
traefik.frontend.rule: "Host:vscode.wooster.xyz"
traefik.port: "8080"
traefik.docker.network: "plexguide"
networks:
- name: plexguide
aliases:
- code-server
restart_policy: unless-stopped
state: started
### ------ Build VS Code image --------- ###
# - name: Build VS Code Image
# command: docker build -t vscode-xe ./image
# - name: Setup VS Code
# docker_container:
# name: vscode
# image: vscode-xe
# env:
# PUID: "1000"
# GUID: "1000"
# labels:
# traefik.enable: "true"
# traefik.frontend.rule: "Host:vscode.wooster.xyz"
# traefik.port: "80"
# traefik.docker.network: "plexguide"
# networks:
# - name: plexguide
# aliases:
# - vscode
# restart_policy: unless-stopped
# state: started
#volumes:
# nodereddata:
# noderedmodules:
# mariadb:
# mosquitto_config:
# mosquitto_data:
# mosquitto_log:
# tasmoconfig:
#networks:
# homeassistant:
# driver: bridge
# plexguide:
# external:
# name: plexguide
###--- Node-red Setup ---###
# nodered:
# build: ./image
# container_name: nodered
# image: node-red-docker:v8
# volumes:
# - nodereddata:/data
# - noderedmodules:/node_app/node_modules
# - /etc/localtime:/etc/localtime:ro
# restart: always
# environment:
# - PUID=1000
# - GUID=1000
# labels:
# traefik.enable: "true"
# traefik.frontend.redirect.entryPoint: "https"
# traefik.frontend.rule: "Host:nodered.wooster.xyz"
# traefik.port: "1880"
# traefik.docker.network: "plexguide"
# ports:
# - 1880:1880
# networks:
# - homeassistant
# - plexguide