Closed Stakdek closed 2 years ago
Also my folders in the docker are empty…
I think I am doing something wrong…
Help?
@Stakdek it is related to mounted directory permissions (data). chown/chmod will help you.
@Stakdek it is related to mounted directory permissions (data). chown/chmod will help you.
So a chown or chmod? But to what user? The docker container has a cryptic user. There must be a general fix to that.
Quick fix (local env only !) will be setting your data folder to chmod 777 so you don't have to mess with ownership (odoo container, postgres container & your host). I'll send you my docker-compose file when I get home.
Sorry for delay @Stakdek ! There is my docker-compose file, you just have to change the UID & GID 1000 with your owns from your host. Run command: id
to get them.
Compose file:
version: '3'
services:
odoo:
image: odoo:14
restart: unless-stopped
user: 1000:1000
environment:
- HOST=postgresql
- USER=odoo
- PASSWORD=odoo
ports:
- 8069:8069
volumes:
- ./data/odoo/config:/etc/odoo
- ./data/odoo/filestore:/var/lib/odoo
- ./data/odoo/addons/extra:/mnt/extra-addons
- ./data/odoo/addons/enterprise:/mnt/enterprise-addons
links:
- postgresql
depends_on:
- postgresql
postgresql:
image: postgres:13
restart: unless-stopped
user: 1000:1000
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
- POSTGRES_DB=postgres
volumes:
- ./data/postgresql:/var/lib/postgresql/data
Don't forget to close the issue ;)
I have a naked PSQL and Odoo Docker with docker-compose configured. After I started the docker Odoo wants to serve on
cece3aa227a5:8069
, so localhost:8069 is also not working…Response from Chrome: Page is not working.
System: Ubuntu 20.04 LTS
Command:
docker-compose up
docker-compose.yml:
Docker Output: