|
|
@@ -1,10 +1,21 @@
|
|
|
services:
|
|
|
+ homeassistant:
|
|
|
+ image: ghcr.io/home-assistant/home-assistant:stable
|
|
|
+ privileged: true
|
|
|
+ volumes:
|
|
|
+ - /mnt/Data/Software/Homeassistant:/config
|
|
|
+ - /run/dbus:/run/dbus:ro
|
|
|
+ environment:
|
|
|
+ TZ: Europe/Rome
|
|
|
+ ports:
|
|
|
+ - 8123:8123
|
|
|
+
|
|
|
mariadb:
|
|
|
image: local/mariadb
|
|
|
build:
|
|
|
dockerfile: ./mariadb/mariadb.yml
|
|
|
volumes:
|
|
|
- - mariadb-data:/var/lib/mysql
|
|
|
+ - /home/MariaDb/var/lib/mysql:/var/lib/mysql
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
|
- 3306:3306
|
|
|
@@ -12,14 +23,14 @@ services:
|
|
|
environment:
|
|
|
MARIADB_PASSWORD: "PassworD"
|
|
|
|
|
|
- setup:
|
|
|
- image: local/setup
|
|
|
+ console:
|
|
|
+ image: console
|
|
|
build:
|
|
|
- dockerfile: ./setup/setup.yml
|
|
|
+ dockerfile: ./console/console.yml
|
|
|
volumes:
|
|
|
- - /mnt/Data/Volumes/Shared-data:/home/shared-data
|
|
|
- - archivio-data:/mnt/Data
|
|
|
- entrypoint: ['bin/bash','/root/setup.sh']
|
|
|
+ - /mnt/Data/Software/Shared_data:/home/shared_data
|
|
|
+ - archivio_data:/mnt/Data
|
|
|
+ entrypoint: ['bin/bash','/root/console.sh']
|
|
|
restart: unless-stopped
|
|
|
|
|
|
gogs:
|
|
|
@@ -27,7 +38,7 @@ services:
|
|
|
build:
|
|
|
dockerfile: ./gogs/gogs.yml
|
|
|
volumes:
|
|
|
- - gogs-data:/home/gogs
|
|
|
+ - /mnt/Data/Software/Gogs:/home/gogs
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
|
- 3000:3000
|
|
|
@@ -38,80 +49,114 @@ services:
|
|
|
build:
|
|
|
dockerfile: ./password/password.yml
|
|
|
volumes:
|
|
|
- - password-data:/home/password
|
|
|
+ - /mnt/Data/Software/Password:/home/password
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
|
- 3020:3020
|
|
|
entrypoint: ['bin/bash','/root/password.sh']
|
|
|
environment:
|
|
|
- PASSWORDWEB_PORT: 3020
|
|
|
+ PASSWORDWEB_PORT: 0.0.0.0:3020
|
|
|
|
|
|
syncthing:
|
|
|
image: local/syncthing
|
|
|
build:
|
|
|
dockerfile: ./syncthing/syncthing.yml
|
|
|
volumes:
|
|
|
- - /mnt/Data/Volumes/Syncthing:/home/syncthing
|
|
|
- - archivio-data:/mnt/Data/Archivio
|
|
|
- - scansioni-data:/mnt/Data/Scansioni
|
|
|
+ - /home/Syncthing:/home/syncthing
|
|
|
+ - archivio_data:/mnt/Data/Archivio
|
|
|
+ - scansioni_data:/mnt/Data/Scansioni
|
|
|
+ - software_data:/mnt/Data/Software
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
|
- 8384:8384
|
|
|
- entrypoint: ['bin/bash','/root/syncthing.sh']
|
|
|
+ entrypoint: ['/bin/bash','/root/syncthing.sh']
|
|
|
|
|
|
-volumes:
|
|
|
- mariadb-data:
|
|
|
- driver: local
|
|
|
- driver_opts:
|
|
|
- device: /mnt/Data/Volumes/MariaDb/var/lib/mysql
|
|
|
- type: local
|
|
|
- o: bind
|
|
|
+ nginx:
|
|
|
+ image: local/nginx
|
|
|
+ build:
|
|
|
+ dockerfile: ./nginx/nginx.yml
|
|
|
+ volumes:
|
|
|
+ - archivio_data:/mnt/Data/Archivio
|
|
|
+ - /mnt/Data/Software/Nginx/etc:/etc/nginx
|
|
|
+ ports:
|
|
|
+ - 8080:8080
|
|
|
+ entrypoint: ['/bin/bash','/root/nginx.sh']
|
|
|
|
|
|
- gogs-data:
|
|
|
- driver: local
|
|
|
- driver_opts:
|
|
|
- device: /mnt/Data/Volumes/Gogs
|
|
|
- type: local
|
|
|
- o: bind
|
|
|
+ php-fpm:
|
|
|
+ image: local/php-fpm
|
|
|
+ build:
|
|
|
+ dockerfile: ./php-fpm/php-fpm.yml
|
|
|
+ depends_on:
|
|
|
+ - nginx
|
|
|
+ restart: unless-stopped
|
|
|
+ entrypoint: ['/bin/bash','/root/php-fpm.sh']
|
|
|
+
|
|
|
+ mqtt:
|
|
|
+ image: local/mqtt
|
|
|
+ build:
|
|
|
+ dockerfile: ./mqtt/mqtt.yml
|
|
|
+ restart: unless-stopped
|
|
|
+ ports:
|
|
|
+ - 1883:1883
|
|
|
+ entrypoint: ['/bin/bash','/root/mqtt.sh']
|
|
|
+ volumes:
|
|
|
+ - mqtt_etc:/mnt/Software
|
|
|
+
|
|
|
+ #lychee:
|
|
|
+ # image: local/lychee
|
|
|
+ # build:
|
|
|
+ # dockerfile: ./lychee/lychee.yml
|
|
|
+ # depends_on:
|
|
|
+ # - nginx
|
|
|
+ # - php-fpm
|
|
|
+ # #restart: unless-stopped
|
|
|
|
|
|
- shared-data:
|
|
|
+volumes:
|
|
|
+ mariadb_data:
|
|
|
+ gogs_data:
|
|
|
+ shared_data:
|
|
|
+ password_data:
|
|
|
+ syncthing_data:
|
|
|
+
|
|
|
+ archivio_data:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
- device: /mnt/Data/Volumes/Shared-data
|
|
|
- type: local
|
|
|
- o: bind
|
|
|
+ type: nfs
|
|
|
+ o: "addr=127.0.0.1,soft,rw"
|
|
|
+ device: ":/mnt/Data/Archivio"
|
|
|
|
|
|
- password-data:
|
|
|
+ scansioni_data:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
- device: /mnt/Data/Volumes/Password
|
|
|
- type: local
|
|
|
- o: bind
|
|
|
+ type: nfs
|
|
|
+ o: "addr=127.0.0.1,soft,rw"
|
|
|
+ device: ":/mnt/Data/Scansioni"
|
|
|
|
|
|
- syncthing-syncthing:
|
|
|
+ software_data:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
- device: /mnt/Data/Volumes/Syncthing
|
|
|
- type: local
|
|
|
- o: bind
|
|
|
+ type: nfs
|
|
|
+ o: "addr=127.0.0.1,soft,rw"
|
|
|
+ device: ":/mnt/Data/Software"
|
|
|
|
|
|
- syncthing-data:
|
|
|
+ nextcloud_data:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
- device: /mnt/Data
|
|
|
- type: local
|
|
|
- o: bind
|
|
|
+ type: nfs
|
|
|
+ o: "addr=127.0.0.1,soft,rw"
|
|
|
+ device: ":/mnt/Data/Software/Nextcloud_data"
|
|
|
|
|
|
- archivio-data:
|
|
|
+ nextcloud_etc:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
type: nfs
|
|
|
o: "addr=127.0.0.1,soft,rw"
|
|
|
- device: ":/mnt/Data/Archivio"
|
|
|
+ device: ":/mnt/Data/Software/Nextcloud_etc"
|
|
|
|
|
|
- scansioni-data:
|
|
|
+ mqtt_etc:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
type: nfs
|
|
|
o: "addr=127.0.0.1,soft,rw"
|
|
|
- device: ":/mnt/Data/Scansioni"
|
|
|
+ device: ":/mnt/Data/Software"
|
|
|
+
|