Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble setting up docker-compose #569

Closed
Latrolage opened this issue Mar 6, 2022 · 2 comments
Closed

Having trouble setting up docker-compose #569

Latrolage opened this issue Mar 6, 2022 · 2 comments

Comments

@Latrolage
Copy link

Latrolage commented Mar 6, 2022

My full steps were

git clone https://github.com/zedeus/nitter
cd nitter
nvim ./docker-compose.yml # set ports to "127.0.0.1:3300:8080" and image to "quay.io/unixfox/nitter:latest" (i'm on arm)
cp ./nitter.example.conf nitter.conf
nvim ./nitter.conf # set hostname to my domain name and set redistHost to nitter-redis
docker-compose up -d

docker logs nitter then gives me

Starting Nitter at http://nitter.net
Failed to connect to Redis.

What did I do wrong?

@Latrolage Latrolage changed the title docker container ignoring config file Having trouble setting up docker-compose Mar 7, 2022
@jackyzy823
Copy link
Contributor

Since you're using unixfox/nitter , you should see docker-compose.yml under README in https://github.com/goodtiding5/docker-nitter , Ref , so you need mount ./nitter.conf to /data/nitter.conf.

@Latrolage
Copy link
Author

Yes, I managed to stumble upon that and it's working now. My new docker-compose is:

version: "3"

services:

  nitter:
    image: quay.io/unixfox/nitter:latest
    container_name: nitter
    restart: always
    depends_on:
      - redis
    volumes:
      - ./data/nitter:/data
    ports:
      - "127.0.0.1:3300:8080"
    environment:
      - REDIS_HOST="redis"

  redis:
    image: redis:alpine
    container_name: redis
    restart: always
    volumes:
      - ./data/redis:/data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants