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" version: "3.9"
services: services:
homeassistant: db:
image: "ghcr.io/home-assistant/home-assistant:stable" image: mariadb
ports: restart: unless-stopped
- 10.55.8.3:8123:8123 ports:
volumes: - ${INTERNAL_IP}:3306:3306
- /home/willem/homeassistant:/config homeassistant:
- /home/willem/repos/homeAutomation/configurations/home-assistant/configuration.yaml:/config/configuration.yaml image: "ghcr.io/home-assistant/home-assistant:stable"
restart: unless-stopped ports:
syncthing: - ${INTERNAL_IP}:8123:8123
image: lscr.io/linuxserver/syncthing:latest volumes:
container_name: syncthing - /home/willem/homeassistant:/config
environment: - /home/willem/repos/homeAutomation/configurations/home-assistant/configuration.yaml:/config/configuration.yaml
- PUID=1000 restart: unless-stopped
- PGID=1000 syncthing:
- TZ=Europe/London image: lscr.io/linuxserver/syncthing:latest
volumes: container_name: syncthing
- /home/willem/syncthing:/data1 environment:
ports: - PUID=1000
- 10.55.8.3:8384:8384 - PGID=1000
- 10.55.8.3:22000:22000/tcp - TZ=Europe/London
- 10.55.8.3:22000:22000/udp volumes:
- 10.55.8.3:21027:21027/udp - /home/willem/syncthing:/data1
restart: unless-stopped 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" version: "3.9"
services: services:
whoami: whoami:
restart: unless-stopped restart: unless-stopped
network_mode: "host" network_mode: "host"
image: traefik/whoami image: traefik/whoami
command: command:
- --port=2001 - --port=2001
traefik: traefik:
restart: unless-stopped restart: unless-stopped
network_mode: "host" network_mode: "host"
image: "traefik:1.7.10" image: "traefik:1.7.10"
volumes: volumes:
- /home/pi/repos/homeAutomation/configurations/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml - /home/pi/repos/homeAutomation/configurations/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml
mosquitto: mosquitto:
restart: unless-stopped restart: unless-stopped
image: eclipse-mosquitto:2 image: eclipse-mosquitto:2
volumes: volumes:
- /home/pi/repos/homeAutomation/configurations/eclipse-mosquitto/:/mosquitto/config/:ro - /home/pi/repos/homeAutomation/configurations/eclipse-mosquitto/:/mosquitto/config/:ro
- ./log/:/mosquitto/log/ - ./log/:/mosquitto/log/
ports: ports:
- 2883:1883 - 2883:1883
- 9001:9001 - 9001:9001