Closed cahiatt closed 3 years ago
You should be able to do this without a problem as long as you keep things separated.
Here's what the docker-compose.yaml
file would look like:
version: '3'
services:
locast2tuner1:
image: ghcr.io/wouterdebie/locast2tuner
container_name: locast2tuner1
environment:
- l2t_username=account1_email
- l2t_password=account1_password
ports:
- 6077:6077
restart: unless-stopped
locast2tuner2:
image: ghcr.io/wouterdebie/locast2tuner
container_name: locast2tuner2
environment:
- l2t_username=account2_email
- l2t_password=account2_password
ports:
- 6078:6077
restart: unless-stopped
I've done variations of this and get one of two results. It either kills one container to start the second or give an error "(root) Additonal property locast2tuner2 is not allowed".
I'm using the free version of Docker. Is this a feature that needs the paid version?
I'm using the free version of Docker. Is this a feature that needs the paid version?
It shouldn't, though I don't run Docker on Windows. Docker shouldn't care.
Can you try that exact docker-compose.yaml
(add your usernames/passwords), and show me exactly what happens? I don't have a second account to test this with, but it should just work.
And that worked. The only difference I had was ports for 2nd account listed as 6078:6078. You have it as 6078:6077 and that one change let them both start.
I'll let you know if Plex can see both of them.
The only difference I had was ports for 2nd account listed as 6078:6078.
Right, the second port is the port inside the container, which will always be 6077 unless you change it in the locast2tuner config. The first port is the port on the host that will forward to the inside port.
In Plex you'll want to attach to locast2tuner1:6077
and locast2tuner2:6078
Right, the second port is the port inside the container.
Thanks. That explained it perfectly. I appreciate your help. Plex found everything and is working well.
Maybe this feature is arleady there and is just a defeciency in my Docker skills. I'd like to be able to run a second instance for additional tuners. I have TWO paid Locast accounts and would like to run one container for account 1 and the second for account 2.
I've tried changing the container name and ports for the second instance but they will not run together. Starting one just kills the other. Has anyone gotten two instances to run simultaneously in Docker?