Aggiunta una network personalizzata, aggiornati tutti i compose alla versione 3.5+ e risolto un paio di typo

This commit is contained in:
miracle091 2021-06-03 09:54:35 +02:00
parent 39745b6f4f
commit 74dd245bd5
22 changed files with 175 additions and 27 deletions

View File

@ -35,11 +35,13 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3.4" version: "3.5"
services: services:
fah: fah:
container_name: linuxserver-fah container_name: linuxserver-fah
image: ghcr.io/linuxserver/foldingathome image: ghcr.io/linuxserver/foldingathome
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${FAH_WEBUI_PORT:-7396}:7396 - ${FAH_WEBUI_PORT:-7396}:7396
@ -52,6 +54,11 @@ services:
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 1m start_period: 1m
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,8 +1,10 @@
version: "3.4" version: "3.5"
services: services:
fah: fah:
container_name: linuxserver-fah container_name: linuxserver-fah
image: ghcr.io/linuxserver/foldingathome image: ghcr.io/linuxserver/foldingathome
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${FAH_WEBUI_PORT:-7396}:7396 - ${FAH_WEBUI_PORT:-7396}:7396
@ -14,4 +16,9 @@ services:
interval: 1m30s interval: 1m30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 1m start_period: 1m
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -40,6 +40,8 @@ services:
db: db:
container_name: gitea-db container_name: gitea-db
image: postgres:13-alpine image: postgres:13-alpine
networks:
- custom-bridge
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@ -55,6 +57,8 @@ services:
git: git:
container_name: gitea container_name: gitea
image: gitea/gitea:1.14.2 image: gitea/gitea:1.14.2
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db
@ -72,6 +76,11 @@ services:
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 1m start_period: 1m
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -3,6 +3,8 @@ services:
db: db:
container_name: gitea-db container_name: gitea-db
image: postgres:13-alpine image: postgres:13-alpine
networks:
- custom-bridge
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@ -18,6 +20,8 @@ services:
git: git:
container_name: gitea container_name: gitea
image: gitea/gitea:1.14.2 image: gitea/gitea:1.14.2
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db
@ -34,4 +38,9 @@ services:
interval: 1m30s interval: 1m30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 1m start_period: 1m
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -37,11 +37,13 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
jellyfin: jellyfin:
container_name: linuxserver-jellyfin container_name: linuxserver-jellyfin
image: ghcr.io/linuxserver/jellyfin image: ghcr.io/linuxserver/jellyfin
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${JELLYFIN_WEBUI_PORT:-8096}:8096 - ${JELLYFIN_WEBUI_PORT:-8096}:8096
@ -59,6 +61,11 @@ services:
#- /dev/video10:/dev/video10 # necessario solo per usare Raspberry Pi V4L2 video encoding #- /dev/video10:/dev/video10 # necessario solo per usare Raspberry Pi V4L2 video encoding
#- /dev/video11:/dev/video11 # necessario solo per usare Raspberry Pi V4L2 video encoding #- /dev/video11:/dev/video11 # necessario solo per usare Raspberry Pi V4L2 video encoding
#- /dev/video12:/dev/video12 # necessario solo per usare Raspberry Pi V4L2 video encoding #- /dev/video12:/dev/video12 # necessario solo per usare Raspberry Pi V4L2 video encoding
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,8 +1,10 @@
version: "3" version: "3.5"
services: services:
jellyfin: jellyfin:
container_name: linuxserver-jellyfin container_name: linuxserver-jellyfin
image: ghcr.io/linuxserver/jellyfin image: ghcr.io/linuxserver/jellyfin
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${JELLYFIN_WEBUI_PORT:-8096}:8096 - ${JELLYFIN_WEBUI_PORT:-8096}:8096
@ -19,4 +21,9 @@ services:
#- /dev/vchiq:/dev/vchiq # necessario solo per usare Raspberry Pi OpenMax video encoding #- /dev/vchiq:/dev/vchiq # necessario solo per usare Raspberry Pi OpenMax video encoding
#- /dev/video10:/dev/video10 # necessario solo per usare Raspberry Pi V4L2 video encoding #- /dev/video10:/dev/video10 # necessario solo per usare Raspberry Pi V4L2 video encoding
#- /dev/video11:/dev/video11 # necessario solo per usare Raspberry Pi V4L2 video encoding #- /dev/video11:/dev/video11 # necessario solo per usare Raspberry Pi V4L2 video encoding
#- /dev/video12:/dev/video12 # necessario solo per usare Raspberry Pi V4L2 video encoding #- /dev/video12:/dev/video12 # necessario solo per usare Raspberry Pi V4L2 video encoding
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -37,11 +37,13 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
komga: komga:
container_name: komga container_name: komga
image: gotson/komga image: gotson/komga
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${KOMGA_WEBUI_PORT:-8080}:8080 - ${KOMGA_WEBUI_PORT:-8080}:8080
@ -49,6 +51,11 @@ services:
volumes: volumes:
- ${KOMGA_CONFIG:-/home/docker/komga/config}:/config - ${KOMGA_CONFIG:-/home/docker/komga/config}:/config
- ${KOMGA_DATA:-/home/docker/komga/data}:/data - ${KOMGA_DATA:-/home/docker/komga/data}:/data
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,12 +1,19 @@
version: "3" version: "3.5"
services: services:
komga: komga:
container_name: komga container_name: komga
image: gotson/komga image: gotson/komga
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${KOMGA_WEBUI_PORT:-8080}:8080 - ${KOMGA_WEBUI_PORT:-8080}:8080
env_file: .env env_file: .env
volumes: volumes:
- ${KOMGA_CONFIG:-/home/docker/komga/config}:/config - ${KOMGA_CONFIG:-/home/docker/komga/config}:/config
- ${KOMGA_DATA:-/home/docker/komga/data}:/data - ${KOMGA_DATA:-/home/docker/komga/data}:/data
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -32,17 +32,24 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
metube: metube:
container_name: metube container_name: metube
image: alexta69/metube image: alexta69/metube
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${METUBE_WEBUI_PORT:-8081}:8081 - ${METUBE_WEBUI_PORT:-8081}:8081
env_file: .env env_file: .env
volumes: volumes:
- ${METUBE_DOWNLOADS:-/home/docker/metube/downloads}:/downloads - ${METUBE_DOWNLOADS:-/home/docker/metube/downloads}:/downloads
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,11 +1,18 @@
version: "3" version: "3.5"
services: services:
metube: metube:
container_name: metube container_name: metube
image: alexta69/metube image: alexta69/metube
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${METUBE_PORT:-8081}:8081 - ${METUBE_WEBUI_PORT:-8081}:8081
env_file: .env env_file: .env
volumes: volumes:
- ${METUBE_DOWNLOADS:-/home/docker/metube/downloads}:/downloads - ${METUBE_DOWNLOADS:-/home/docker/metube/downloads}:/downloads
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -38,6 +38,8 @@ services:
db: db:
container_name: miniflux-db container_name: miniflux-db
image: postgres:13-alpine image: postgres:13-alpine
networks:
- custom-bridge
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@ -53,6 +55,8 @@ services:
feeder: feeder:
container_name: miniflux container_name: miniflux
image: ghcr.io/miniflux/miniflux image: ghcr.io/miniflux/miniflux
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db
@ -61,6 +65,11 @@ services:
env_file: .env env_file: .env
healthcheck: healthcheck:
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"] test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -3,6 +3,8 @@ services:
db: db:
container_name: miniflux-db container_name: miniflux-db
image: postgres:13-alpine image: postgres:13-alpine
networks:
- custom-bridge
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@ -18,6 +20,8 @@ services:
feeder: feeder:
container_name: miniflux container_name: miniflux
image: ghcr.io/miniflux/miniflux image: ghcr.io/miniflux/miniflux
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db
@ -25,4 +29,9 @@ services:
- ${MINIFLUX_WEBUI_PORT:-8080}:8080 - ${MINIFLUX_WEBUI_PORT:-8080}:8080
env_file: .env env_file: .env
healthcheck: healthcheck:
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"] test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -44,6 +44,8 @@ services:
navidrome: navidrome:
container_name: navidrome container_name: navidrome
image: deluan/navidrome image: deluan/navidrome
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${NAVIDROME_WEBUI_PORT:-4533}:4533 - ${NAVIDROME_WEBUI_PORT:-4533}:4533
@ -51,6 +53,11 @@ services:
volumes: volumes:
- ${NAVIDROME_DATA:-/home/docker/navidrome/data}:/data - ${NAVIDROME_DATA:-/home/docker/navidrome/data}:/data
- ${MUSIC_DIR:-/home/music}:/music:ro - ${MUSIC_DIR:-/home/music}:/music:ro
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -3,10 +3,17 @@ services:
navidrome: navidrome:
container_name: navidrome container_name: navidrome
image: deluan/navidrome image: deluan/navidrome
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${NAVIDROME_WEBUI_PORT:-4533}:4533 - ${NAVIDROME_WEBUI_PORT:-4533}:4533
env_file: .env env_file: .env
volumes: volumes:
- ${NAVIDROME_DATA:-/home/docker/navidrome/data}:/data - ${NAVIDROME_DATA:-/home/docker/navidrome/data}:/data
- ${MUSIC_DIR:-/home/music}:/music:ro - ${MUSIC_DIR:-/home/music}:/music:ro
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -36,11 +36,13 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
podgrab: podgrab:
container_name: podgrab container_name: podgrab
image: akhilrex/podgrab image: akhilrex/podgrab
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${PODGRAB_WEBUI_PORT:-8080}:8080 - ${PODGRAB_WEBUI_PORT:-8080}:8080
@ -48,6 +50,11 @@ services:
volumes: volumes:
- ${PODGRAB_ASSETS:-/home/docker/podgrab/assets}:/assets - ${PODGRAB_ASSETS:-/home/docker/podgrab/assets}:/assets
- ${PODGRAB_CONFIG:-/home/docker/podgrab/config}:/config - ${PODGRAB_CONFIG:-/home/docker/podgrab/config}:/config
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,12 +1,19 @@
version: "3" version: "3.5"
services: services:
podgrab: podgrab:
container_name: podgrab container_name: podgrab
image: akhilrex/podgrab image: akhilrex/podgrab
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${PODGRAB_WEBUI_PORT:-8080}:8080 - ${PODGRAB_WEBUI_PORT:-8080}:8080
env_file: .env env_file: .env
volumes: volumes:
- ${PODGRAB_ASSETS:-/home/docker/podgrab/assets}:/assets - ${PODGRAB_ASSETS:-/home/docker/podgrab/assets}:/assets
- ${PODGRAB_CONFIG:-/home/docker/podgrab/config}:/config - ${PODGRAB_CONFIG:-/home/docker/podgrab/config}:/config
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -35,11 +35,13 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
syncthing: syncthing:
container_name: linuxserver-syncthing container_name: linuxserver-syncthing
image: ghcr.io/linuxserver/syncthing image: ghcr.io/linuxserver/syncthing
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${SYNCTHING_WEBUI_PORT:-8384}:8384 - ${SYNCTHING_WEBUI_PORT:-8384}:8384
@ -52,6 +54,11 @@ services:
volumes: volumes:
- ${SYNCTHING_CONFIG:-/home/docker/syncthing/config}:/config - ${SYNCTHING_CONFIG:-/home/docker/syncthing/config}:/config
- ${SYNCTHING_DATA:-/home/docker/syncthing/data}:/data - ${SYNCTHING_DATA:-/home/docker/syncthing/data}:/data
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,8 +1,10 @@
version: "3" version: "3.5"
services: services:
syncthing: syncthing:
container_name: linuxserver-syncthing container_name: linuxserver-syncthing
image: ghcr.io/linuxserver/syncthing image: ghcr.io/linuxserver/syncthing
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${SYNCTHING_WEBUI_PORT:-8384}:8384 - ${SYNCTHING_WEBUI_PORT:-8384}:8384
@ -14,4 +16,9 @@ services:
- net.core.rmem_max=2097152 - net.core.rmem_max=2097152
volumes: volumes:
- ${SYNCTHING_CONFIG:-/home/docker/syncthing/config}:/config - ${SYNCTHING_CONFIG:-/home/docker/syncthing/config}:/config
- ${SYNCTHING_DATA:-/home/docker/syncthing/data}:/data - ${SYNCTHING_DATA:-/home/docker/syncthing/data}:/data
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -34,11 +34,13 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
unifi: unifi:
container_name: linuxserver-unifi container_name: linuxserver-unifi
image: ghcr.io/linuxserver/unifi-controller image: ghcr.io/linuxserver/unifi-controller
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${UNIFI_WEBUI_PORT:-8080}:8080 - ${UNIFI_WEBUI_PORT:-8080}:8080
@ -48,6 +50,11 @@ services:
env_file: .env env_file: .env
volumes: volumes:
- ${UNIFI_CONFIG:-/home/docker/unifi/config}:/config - ${UNIFI_CONFIG:-/home/docker/unifi/config}:/config
networks:
custom-bridge:
name: custom-bridge
driver: bridge
``` ```
`.env` `.env`

View File

@ -1,8 +1,10 @@
version: "3" version: "3.5"
services: services:
unifi: unifi:
container_name: linuxserver-unifi container_name: linuxserver-unifi
image: ghcr.io/linuxserver/unifi-controller image: ghcr.io/linuxserver/unifi-controller
networks:
- custom-bridge
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${UNIFI_WEBUI_PORT:-8080}:8080 - ${UNIFI_WEBUI_PORT:-8080}:8080
@ -11,4 +13,9 @@ services:
- ${UNIFI_STUN_PORT:-3478}/udp:3478/udp - ${UNIFI_STUN_PORT:-3478}/udp:3478/udp
env_file: .env env_file: .env
volumes: volumes:
- ${UNIFI_CONFIG:-/home/docker/unifi/config}:/config - ${UNIFI_CONFIG:-/home/docker/unifi/config}:/config
networks:
custom-bridge:
name: custom-bridge
driver: bridge

View File

@ -33,7 +33,7 @@ Semplice esempio per iniziare ad usare subito il container
### docker-compose ### docker-compose
`docker-compose.yml` `docker-compose.yml`
```yml ```yml
version: "3" version: "3.5"
services: services:
watchtower: watchtower:
container_name: watchtower container_name: watchtower

View File

@ -1,4 +1,4 @@
version: "3" version: "3.5"
services: services:
watchtower: watchtower:
container_name: watchtower container_name: watchtower