• May 25, 2018, 4:05 p.m.

    After "docker-compose build"
    docker-compose run --rm misago initdev
    I am getting this error

  • May 25, 2018, 4:18 p.m.

    The compose setup maps the postgres container port to your host. You probably already have postgres running locally. Stop the local postgres or comment out the ports section in the compose setup.

    The clue is in Bind for 127.0.0.1:5432 failed: port is already allocated

    The docker-compose.yaml file:

      postgres:
        image: postgres:10
        environment:
          - POSTGRES_USER=misago
          - POSTGRES_PASSWORD=misago
        ports: 
          - '127.0.0.1:5432:5432'
    

    The ports section here will collide with your local postgres server.

  • May 25, 2018, 6:52 p.m.

    How do you get Misago to connect to your database then? You are making it very difficult for yourself if you don't use the postgres database in docker. You might as well drop the docker setup completely.