Skip to content

Commit

Permalink
Docker port tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Dec 27, 2023
1 parent 132502d commit ea8465d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 43 deletions.
2 changes: 1 addition & 1 deletion configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ ifttt:
key: !secret IFTTT

influxdb:
host: 10.0.1.22
host: 127.0.0.1
exclude:
entities:
- binary_sensor.internet_reachability
Expand Down
18 changes: 8 additions & 10 deletions extras/docker-compose/homeassistant/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ services:
container_name: mariadb
image: 'mariadb:latest'
user: '99'
environment:
- TZ=America/Chicago
ports:
- '127.0.0.1:3306:3306'
- '127.0.0.1:3306:3306' # Expose localhost only for Home Assistant
volumes:
- /opt/mariadb:/var/lib/mysql
environment:
Expand Down Expand Up @@ -91,7 +89,7 @@ services:
- '/opt/influxdb:/var/lib/influxdb'
- '/opt/influxdb/conf:/etc/influxdb'
ports:
- '8086:8086'
- '127.0.0.1:8086:8086' # Expose localhost only for Home Assistant
restart: always
environment:
- TZ=America/Chicago
Expand All @@ -102,8 +100,8 @@ services:
volumes:
- /opt/nodered:/data
- /etc/localtime:/etc/localtime:ro
ports:
- "1880:1880"
# ports:
# - "1880:1880"
environment:
- TZ=America/Chicago
restart: always
Expand All @@ -126,7 +124,7 @@ services:
environment:
- TZ=America/Chicago
ports:
- '8888:8888'
- '127.0.0.1:8888:8888' # Expose localhost only for Home Assistant
restart: always
thermostat_api_server:
container_name: thermostat_api_server
Expand Down Expand Up @@ -155,16 +153,16 @@ services:
volumes:
- /opt/zwavejs:/usr/src/app/store
ports:
- '8091:8091' # port for web interface
- '127.0.0.1:3000:3000' # port for zwave-js websocket server
#- '8091:8091' # port for web interface
- '127.0.0.1:3000:3000' # port for zwave-js websocket server expose localhost only for Home Assistant
environment:
- TZ=America/Chicago
cellular_message_relay_sim7080g:
container_name: cellular_message_relay_sim7080g
image: ghcr.io/aneisch/cellular_message_relay:sim7080g
#image: cellular_message_relay:sim7080g
ports:
- '127.0.0.1:9998:9999'
- '127.0.0.1:9998:9999' # Expose localhost only for Home Assistant
environment:
- SIM_KEY=SIM_KEY
- HOST=HOSTIP
Expand Down
19 changes: 9 additions & 10 deletions extras/docker-compose/other/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ services:
ports:
- 53:5353/tcp
- 53:5353/udp
- 8088:8080/tcp
- "127.0.0.1:8088:8080" # Expose localhost only for Home Assistant
environment:
- TZ=America/Chicago
restart: 'always'
Expand Down Expand Up @@ -250,15 +250,15 @@ services:
- MODE=native
- TZ=America/Chicago
ports:
- "127.0.0.1:8800:8080"
- "8808:8080"
- "127.0.0.1:8800:8080" # Expose localhost only for Home Assistant
#- "8808:8080"
volumes:
- "/opt/signal-rest-api:/home/.local/share/signal-cli"
apcupsd:
container_name: apcupsd
image: gersilex/apcupsd
ports:
- '3551:3551'
- '127.0.0.1:3551:3551' # Expose localhost only for Home Assistant
volumes:
- /opt/apcupsd/apcupsd.conf:/etc/apcupsd/apcupsd.conf
devices:
Expand Down Expand Up @@ -358,21 +358,21 @@ services:
- /frigate:/media/frigate
ports:
# Two below needed for Home Assistant
- "127.0.0.1:5000:5000"
- "127.0.0.1:8554:8554"
- "127.0.0.1:5000:5000" # Expose localhost only for Home Assistant
- "127.0.0.1:8554:8554" # Expose localhost only for Home Assistant
# Two below needed for 2way stream
- "8555:8555/tcp"
- "8555:8555/udp"
- "127.0.0.1:1984:1984"
- "127.0.0.1:1984:1984" # Expose localhost only for Home Assistant
environment:
- PLUS_API_KEY=secret
- TZ=America/Chicago
codeproject:
container_name: codeproject
restart: 'always'
image: codeproject/ai-server
ports:
- 32168:32168
# ports:
# - 32168:32168
volumes:
- /opt/codeproject/config:/etc/codeproject/ai
- /opt/codeproject/modules:/app/preinstalled-modules/ObjectDetectionYolo/custom-models/
Expand All @@ -388,7 +388,6 @@ services:
- "-u"
- "southwest.py"
- "--verbose"

ha-fusion:
container_name: ha-fusion
image: ghcr.io/matt8707/ha-fusion
Expand Down
37 changes: 17 additions & 20 deletions extras/docker-compose/unified/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ services:
container_name: mariadb
image: 'mariadb:latest'
user: '99'
environment:
- TZ=America/Chicago
ports:
- '127.0.0.1:3306:3306'
- '127.0.0.1:3306:3306' # Expose localhost only for Home Assistant
volumes:
- /opt/mariadb:/var/lib/mysql
environment:
Expand Down Expand Up @@ -92,7 +90,7 @@ services:
- '/opt/influxdb:/var/lib/influxdb'
- '/opt/influxdb/conf:/etc/influxdb'
ports:
- '8086:8086'
- '127.0.0.1:8086:8086' # Expose localhost only for Home Assistant
restart: always
environment:
- TZ=America/Chicago
Expand All @@ -103,8 +101,8 @@ services:
volumes:
- /opt/nodered:/data
- /etc/localtime:/etc/localtime:ro
ports:
- "1880:1880"
# ports:
# - "1880:1880"
environment:
- TZ=America/Chicago
restart: always
Expand All @@ -127,7 +125,7 @@ services:
environment:
- TZ=America/Chicago
ports:
- '8888:8888'
- '127.0.0.1:8888:8888' # Expose localhost only for Home Assistant
restart: always
thermostat_api_server:
container_name: thermostat_api_server
Expand Down Expand Up @@ -156,16 +154,16 @@ services:
volumes:
- /opt/zwavejs:/usr/src/app/store
ports:
- '8091:8091' # port for web interface
- '127.0.0.1:3000:3000' # port for zwave-js websocket server
#- '8091:8091' # port for web interface
- '127.0.0.1:3000:3000' # port for zwave-js websocket server expose localhost only for Home Assistant
environment:
- TZ=America/Chicago
cellular_message_relay_sim7080g:
container_name: cellular_message_relay_sim7080g
image: ghcr.io/aneisch/cellular_message_relay:sim7080g
#image: cellular_message_relay:sim7080g
ports:
- '127.0.0.1:9998:9999'
- '127.0.0.1:9998:9999' # Expose localhost only for Home Assistant
environment:
- SIM_KEY=SIM_KEY
- HOST=HOSTIP
Expand Down Expand Up @@ -353,7 +351,7 @@ services:
ports:
- 53:5353/tcp
- 53:5353/udp
- 8088:8080/tcp
- "127.0.0.1:8088:8080" # Expose localhost only for Home Assistant
environment:
- TZ=America/Chicago
restart: 'always'
Expand Down Expand Up @@ -427,15 +425,15 @@ services:
- MODE=native
- TZ=America/Chicago
ports:
- "127.0.0.1:8800:8080"
- "8808:8080"
- "127.0.0.1:8800:8080" # Expose localhost only for Home Assistant
#- "8808:8080"
volumes:
- "/opt/signal-rest-api:/home/.local/share/signal-cli"
apcupsd:
container_name: apcupsd
image: gersilex/apcupsd
ports:
- '3551:3551'
- '127.0.0.1:3551:3551' # Expose localhost only for Home Assistant
volumes:
- /opt/apcupsd/apcupsd.conf:/etc/apcupsd/apcupsd.conf
devices:
Expand Down Expand Up @@ -535,21 +533,21 @@ services:
- /frigate:/media/frigate
ports:
# Two below needed for Home Assistant
- "127.0.0.1:5000:5000"
- "127.0.0.1:8554:8554"
- "127.0.0.1:5000:5000" # Expose localhost only for Home Assistant
- "127.0.0.1:8554:8554" # Expose localhost only for Home Assistant
# Two below needed for 2way stream
- "8555:8555/tcp"
- "8555:8555/udp"
- "127.0.0.1:1984:1984"
- "127.0.0.1:1984:1984" # Expose localhost only for Home Assistant
environment:
- PLUS_API_KEY=secret
- TZ=America/Chicago
codeproject:
container_name: codeproject
restart: 'always'
image: codeproject/ai-server
ports:
- 32168:32168
# ports:
# - 32168:32168
volumes:
- /opt/codeproject/config:/etc/codeproject/ai
- /opt/codeproject/modules:/app/preinstalled-modules/ObjectDetectionYolo/custom-models/
Expand All @@ -565,7 +563,6 @@ services:
- "-u"
- "southwest.py"
- "--verbose"

ha-fusion:
container_name: ha-fusion
image: ghcr.io/matt8707/ha-fusion
Expand Down
4 changes: 2 additions & 2 deletions rest_command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# these will be triggered by scripts

adjust_night:
url: http://10.0.1.22:8888/api/appdaemon/adjust_night
url: http://127.0.0.1:8888/api/appdaemon/adjust_night
method: POST
payload: '{"type": "Adjust Night"}'
content_type: 'application/json'

adjust_morning:
url: http://10.0.1.22:8888/api/appdaemon/adjust_morning
url: http://127.0.0.1:8888/api/appdaemon/adjust_morning
method: POST
payload: '{"type": "Adjust Morning"}'
content_type: 'application/json'
Expand Down

0 comments on commit ea8465d

Please sign in to comment.