chore: added mariadb to docker compose

This commit is contained in:
2022-11-20 20:18:16 +01:00
parent b29c112793
commit aaa8c47882
4 changed files with 61 additions and 48 deletions

1
.gitignore vendored
View File

@@ -0,0 +1 @@
.env.production

7
home-server/.env Normal file
View File

@@ -0,0 +1,7 @@
# General settings
INTERNAL_IP: localhost
# Db settings
MARIADB_ROOT_PASSWORD=test

View File

@@ -1,25 +1,30 @@
version: "3.9"
services:
homeassistant:
image: "ghcr.io/home-assistant/home-assistant:stable"
ports:
- 10.55.8.3:8123:8123
volumes:
- /home/willem/homeassistant:/config
- /home/willem/repos/homeAutomation/configurations/home-assistant/configuration.yaml:/config/configuration.yaml
restart: unless-stopped
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /home/willem/syncthing:/data1
ports:
- 10.55.8.3:8384:8384
- 10.55.8.3:22000:22000/tcp
- 10.55.8.3:22000:22000/udp
- 10.55.8.3:21027:21027/udp
restart: unless-stopped
version: "3.9"
services:
db:
image: mariadb
restart: unless-stopped
ports:
- ${INTERNAL_IP}:3306:3306
homeassistant:
image: "ghcr.io/home-assistant/home-assistant:stable"
ports:
- ${INTERNAL_IP}:8123:8123
volumes:
- /home/willem/homeassistant:/config
- /home/willem/repos/homeAutomation/configurations/home-assistant/configuration.yaml:/config/configuration.yaml
restart: unless-stopped
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /home/willem/syncthing:/data1
ports:
- ${INTERNAL_IP}:8384:8384
- ${INTERNAL_IP}:22000:22000/tcp
- ${INTERNAL_IP}:22000:22000/udp
- ${INTERNAL_IP}:21027:21027/udp
restart: unless-stopped

View File

@@ -1,23 +1,23 @@
version: "3.9"
services:
whoami:
restart: unless-stopped
network_mode: "host"
image: traefik/whoami
command:
- --port=2001
traefik:
restart: unless-stopped
network_mode: "host"
image: "traefik:1.7.10"
volumes:
- /home/pi/repos/homeAutomation/configurations/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml
mosquitto:
restart: unless-stopped
image: eclipse-mosquitto:2
volumes:
- /home/pi/repos/homeAutomation/configurations/eclipse-mosquitto/:/mosquitto/config/:ro
- ./log/:/mosquitto/log/
ports:
- 2883:1883
- 9001:9001
version: "3.9"
services:
whoami:
restart: unless-stopped
network_mode: "host"
image: traefik/whoami
command:
- --port=2001
traefik:
restart: unless-stopped
network_mode: "host"
image: "traefik:1.7.10"
volumes:
- /home/pi/repos/homeAutomation/configurations/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml
mosquitto:
restart: unless-stopped
image: eclipse-mosquitto:2
volumes:
- /home/pi/repos/homeAutomation/configurations/eclipse-mosquitto/:/mosquitto/config/:ro
- ./log/:/mosquitto/log/
ports:
- 2883:1883
- 9001:9001