address already in use when creating a docker container
robert rottermann
robert at redcor.ch
Wed Feb 8 14:02:52 UTC 2023
Hi Friends in Ubuntu.
I get an address already in use error:
ERROR: for odoo Cannot start service odoo: driver failed programming external
connectivity on endpoint odoo_15_odoo_1
(0129dc128b18a610b9fcca2be4b0f9eb1cfd3b6b39c6269723d60a3b3222d3fb): Error
starting userland proxy: listen tcp 127.0.0.1:8069: bind: address already in use
when I try to
docker-compose up the following docker-compose configuration.
I tried hard to find and close all processes using that port.
thanks for your help.
Robert
I am using the following docker-compose configuration which runs fine on my laptop.
docker-compose.yml:
version: '3'
services:
odoo:
image: odoo:15.0
env_file: .env
depends_on:
- postgres
ports:
- "127.0.0.1:8069:8069"
volumes:
- data:/var/lib/odoo
postgres:
image: postgres:13
env_file: .env
volumes:
- db:/var/lib/postgresql/data/pgdata
volumes:
data:
db:
.env:
# postgresql environment variables
POSTGRES_DB=postgres
POSTGRES_PASSWORD=odoo
POSTGRES_USER=odoo
PGDATA=/var/lib/postgresql/data/pgdata
# odoo environment variables
HOST=postgres
USER=odoo
PASSWORD=odoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230208/cfc3ef68/attachment.html>
More information about the ubuntu-users
mailing list