invidious-with-companion/docker-compose.yml

43 lines
1.4 KiB
YAML
Raw Normal View History

# Warning: This docker-compose file is made for development purposes.
# Using it will build an image from the locally cloned repository.
#
# If you want to use Invidious in production, see the docker-compose.yml file provided
# in the installation documentation: https://docs.invidious.io/installation/
2022-02-21 21:54:36 -03:00
version: "3"
2018-09-26 04:46:08 -03:00
services:
2022-02-21 21:54:36 -03:00
2024-04-27 18:25:22 -04:00
invidious-refresher:
2024-04-27 20:10:12 -04:00
image: git.nadeko.net/fijxu/invidious:latest
2018-09-26 04:46:08 -03:00
restart: unless-stopped
2024-04-27 18:25:22 -04:00
volumes:
2024-04-27 20:10:12 -04:00
- ./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
2022-02-21 21:54:36 -03:00
2024-04-27 18:25:22 -04:00
invidious:
2024-04-27 20:10:12 -04:00
image: git.nadeko.net/fijxu/invidious:latest
2022-02-21 21:54:36 -03:00
restart: unless-stopped
2024-04-27 18:25:22 -04:00
deploy:
replicas: 4
2022-02-21 21:54:36 -03:00
volumes:
2024-04-27 20:10:12 -04:00
- ./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
2018-09-26 04:46:08 -03:00
2024-04-27 18:25:22 -04:00
invidious-nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- invidious
ports:
2024-04-27 20:10:12 -04:00
- "127.0.0.1:10011:3000"