After "docker-compose build"
docker-compose run --rm misago initdev
I am getting this error
After "docker-compose build"
docker-compose run --rm misago initdev
I am getting this error
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.
i removed Postgres container and it is working
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.