コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
15635 ビュー

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 ...

アバター
破棄
最善の回答

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. :)

アバター
破棄
著作者 最善の回答

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" ¿?


アバター
破棄

I have updated my earlier response

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
4
5月 24
11232
1
4月 24
2151
0
11月 23
1097
1
9月 23
1131
2
8月 23
3247