Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
16249 Widoki

Good morning,

I have installed ODOO 13 in SYNOLOGY through DOCKER with POSTGRES 10 and everything has been installed correctly, because it starts in the container, but I am not able to access through LOCALHOST: 8069 or another port.

I don't know where the created base is (I'm new to this) and I've changed the parameters in docker-compose.yml but nothing.

I have changed the users and neither

Any clue where to start?

Thank you

I have been trying for two days, and at least now I have managed to install it with the DOCKER ...

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

the answer given by Paresh Wagh is only half-way correct. I'll explain a little bit further:

Whenever you define an entry under "ports" in your compose file, it means "map this port of the host : to this port of the container". So "8071:8069" means 8071 is the host's port & 8069 is the port inside the container (odoo's default port in this case). Port 8069 must be declared as exposed in your dockerfile (EXPOSE 8069). You can expose any ports you'd like this way:

EXPOSE 8069 8070 8071 8072 ...

However, if you want to reach any of these exposed ports from the host, you have to declare a mapping just like you did.

ports:
- 8071:8069
- 1234:8070
- 5555:8071

...and so on. Note that the host's port does not have to be the same like the container's port!

Naturally, as the port on the left side of the mapping is the host's port, to reach Odoo on your localhost you have to address this port, in your case: http://localhost:8071

tl;dr:

There is no need to change the mapping from "8071:8069" to "8069:8069". Just keep in mind that the syntax is "HOST:CONTAINER" and address the host's port like localhost:HOST and you'll get there. :)

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Gracias por la respuesta.

Mi docker-compose.yml es asi


version: '2'

services:

  web:

    image: odoo:latest

    depends_on:

      - db

    ports:

      - "8071:8069"

  db:

    image: postgres:10

    environment:

      - POSTGRES_DB=postgres

      - POSTGRES_PASSWORD=odoo

      - POSTGRES_USER=odoo


Creo que puede ser que no encuentra la base de datos "postgres" ¿?


Awatar
Odrzuć

I have updated my earlier response

Najlepsza odpowiedź

Hi:

You need to expose the ports in the container to the docker host. Check whether you have something that looks like the following in your docker compose file under the web/odoo service.

        ports:
            - "8069:8069"


EDIT (based on your yml file):

Change the ports definition to "8069:8069" and you will be able to access Odoo using http://locahost:8069

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
maj 24
12599
1
kwi 24
3242
0
lis 23
1981
1
wrz 23
2069
2
sie 23
4452