From 2700e4710ea0f766d2cd4c4016d246e41f58dda3 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sat, 27 Apr 2024 20:10:12 -0400 Subject: [PATCH] docker-compose.yml for my instances --- docker-compose.yml | 24 +++++++++++++++--------- nginx.conf | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 63b2d4f5..dc19f303 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,22 +8,28 @@ version: "3" services: invidious-refresher: - image: git.nadeko.net/invidious/invidious:latest + image: git.nadeko.net/fijxu/invidious:latest restart: unless-stopped - ports: - - "127.0.0.1:5432:5432" volumes: - - ./config/config.conf:/etc/config/invidious-refresher.conf + - ./config/config-refresher.yml:/etc/invidious/config.yml:ro + - ./logs:/var/log/invidious:rw + - /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw + - /var/run/redis/redis.sock:/var/run/redis/redis.sock:rw + environment: + INVIDIOUS_CONFIG_FILE: /etc/invidious/config.yml invidious: - image: git.nadeko.net/invidious/invidious:latest + image: git.nadeko.net/fijxu/invidious:latest restart: unless-stopped - ports: - - "127.0.0.1:5432:5432" deploy: replicas: 4 volumes: - - ./config/config.conf:/etc/config/config.conf + - ./config/config.yml:/etc/invidious/config.yml:ro + - ./logs:/var/log/invidious:rw + - /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw + - /var/run/redis/redis.sock:/var/run/redis/redis.sock:rw + environment: + INVIDIOUS_CONFIG_FILE: /etc/invidious/config.yml invidious-nginx: image: nginx:latest @@ -33,4 +39,4 @@ services: depends_on: - invidious ports: - - "127.0.0.1:50011:3000" + - "127.0.0.1:10011:3000" diff --git a/nginx.conf b/nginx.conf index 58d64b71..69aad3fd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,6 @@ user www-data; events { - worker_connections 1000; + worker_connections 1024; } http { server {