Use docker compose fragments instead of extend to prevent attribute duplication
This commit is contained in:
parent
a9755211a4
commit
07d855ac35
2 changed files with 74 additions and 69 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Docker compose file for Backend 3 of inv.nadeko.net
|
# Docker compose file for Backend 3 of inv.nadeko.net
|
||||||
#
|
|
||||||
services:
|
#https://docs.docker.com/reference/compose-file/fragments/
|
||||||
invidious-extend:
|
x-common-config: &common-config
|
||||||
env_file:
|
env_file:
|
||||||
# Env file containing variables like TAG, INV_MEM_*
|
# Env file containing variables like TAG, INV_MEM_*
|
||||||
- .env
|
- .env
|
||||||
|
@ -19,7 +19,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
# - inv_sig_helper
|
# - inv_sig_helper
|
||||||
- haproxy
|
- haproxy
|
||||||
environment:
|
environment: &env
|
||||||
INVIDIOUS_CONFIG_FILE: "/etc/invidious/config.yml"
|
INVIDIOUS_CONFIG_FILE: "/etc/invidious/config.yml"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: wget -nv --tries=1 --spider https://inv.nadeko.net/watch?v=mcYLzu_1cNc || exit 1
|
test: wget -nv --tries=1 --spider https://inv.nadeko.net/watch?v=mcYLzu_1cNc || exit 1
|
||||||
|
@ -27,28 +27,30 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 2
|
retries: 2
|
||||||
|
|
||||||
|
services:
|
||||||
# INVIDIOUS CLEARNET
|
# INVIDIOUS CLEARNET
|
||||||
invidious:
|
invidious:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
|
||||||
environment:
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3000"
|
INVIDIOUS_PORT: "3000"
|
||||||
|
|
||||||
invidious2:
|
invidious2:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
|
||||||
environment:
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3001"
|
INVIDIOUS_PORT: "3001"
|
||||||
|
|
||||||
invidious3:
|
invidious3:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
|
||||||
environment:
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3002"
|
INVIDIOUS_PORT: "3002"
|
||||||
|
|
||||||
invidious4:
|
invidious4:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3003"
|
INVIDIOUS_PORT: "3003"
|
||||||
|
|
||||||
# SIGNATURE HELPER
|
# SIGNATURE HELPER
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Docker compose file for Backend 2 of inv.nadeko.net
|
# Docker compose file for Backend 2 of inv.nadeko.net
|
||||||
|
|
||||||
services:
|
#https://docs.docker.com/reference/compose-file/fragments/
|
||||||
invidious-extend:
|
x-common-config: &common-config
|
||||||
env_file:
|
env_file:
|
||||||
# Env file containing variables like TAG, INV_MEM_*
|
# Env file containing variables like TAG, INV_MEM_*
|
||||||
- .env
|
- .env
|
||||||
|
@ -19,7 +19,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
# - inv_sig_helper
|
# - inv_sig_helper
|
||||||
- haproxy
|
- haproxy
|
||||||
environment:
|
environment: &env
|
||||||
INVIDIOUS_CONFIG_FILE: "/etc/invidious/config.yml"
|
INVIDIOUS_CONFIG_FILE: "/etc/invidious/config.yml"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: wget -nv --tries=1 --spider https://inv.nadeko.net/watch?v=mcYLzu_1cNc || exit 1
|
test: wget -nv --tries=1 --spider https://inv.nadeko.net/watch?v=mcYLzu_1cNc || exit 1
|
||||||
|
@ -27,28 +27,30 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 2
|
retries: 2
|
||||||
|
|
||||||
|
services:
|
||||||
# INVIDIOUS CLEARNET
|
# INVIDIOUS CLEARNET
|
||||||
invidious:
|
invidious:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
|
||||||
environment:
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3000"
|
INVIDIOUS_PORT: "3000"
|
||||||
|
|
||||||
invidious2:
|
invidious2:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
|
||||||
environment:
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3001"
|
INVIDIOUS_PORT: "3001"
|
||||||
|
|
||||||
invidious3:
|
invidious3:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
|
||||||
environment:
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3002"
|
INVIDIOUS_PORT: "3002"
|
||||||
|
|
||||||
invidious4:
|
invidious4:
|
||||||
extends:
|
<<: *common-config
|
||||||
service: invidious-extend
|
environment:
|
||||||
|
<<: *env
|
||||||
INVIDIOUS_PORT: "3003"
|
INVIDIOUS_PORT: "3003"
|
||||||
|
|
||||||
# SIGNATURE HELPER
|
# SIGNATURE HELPER
|
||||||
|
@ -130,3 +132,4 @@ networks:
|
||||||
gluetun_network:
|
gluetun_network:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue