Post Reply 
Running two separate minimservers using docker?
15-07-2020, 15:54
Post: #5
RE: Running two separate minimservers using docker?
I'm trying to do it without the need for minimwatch, and have one service working fine. I don't seem to be able to get a second though. I've tried a few things, but have run out of ideas!

I'm attempting to run the second service on different ports, but can't seem to update the `minimserver.config` file.

I've tried exec into container and running `prop http.port=9792 ` , but I get a permission error trying to edit `minimserver.config`

If I edit the `minimserver.config` on the host machine and bind it to the container, I get:

Code:
MinimServer 0.8.5.2, Copyright (c) 2012-2017 Simon Nash. All rights reserved.
Integrity check value missing in file minimserver.config
MinimServer failure: now stopped, use 'relaunch' or 'exit'
Enter command (? for help):

Specifically I want to add the following to the config file

Code:
minimserver.contentDir = /Music
minimserver.ohnet.port = 9793
minimserver.http.port = 9792


For info my `docker-compose.yml` is as follows.

Code:
services:
  minimserver-svc2:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: minimserver-svc2
    image: minimserver:0.8.5.2
    network_mode: "host"
    restart: always

    volumes:
      - "/mnt/Music:/Music"
      - type: bind
        source: ./minimserver.config
        target: /opt/minimserver/data/minimserver.config
    expose:
      - 1900
      - 9792
      - 9793
    ports:
      - 9792:9792
      - 9793:9793

version: "3.5"



Lastly I tried running a `docker-entrypoint.sh` like this , but that failed too...

Code:
#!/bin/sh

/opt/minimserver/bin/startc
prop http.port=9792
prop ohnet.port=9793
prop contentDir=/Music
restart
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Running two separate minimservers using docker? - xewisog304 - 15-07-2020 15:54

Forum Jump:


User(s) browsing this thread: 1 Guest(s)