Hi this is somewhat similar to this question but nothing there about docker containers
I am using a mac so I started using docker since it's more convenient on macOS Microsoft visual studio code has may feature a full development environment
It has an extension from MS Remote - Containers with should make easier
This is my docker-compose.yml
version: '2'
services:
db:
image: 'postgres:11'
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
restart: always
volumes:
- './postgresql:/var/lib/postgresql/data'
pgadmin:
image: dpage/pgadmin4
depends_on:
- db
ports:
- '5555:80'
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- './pgadmin:/var/lib/pgadmin'
odoo13:
image: 'odoo:13'
depends_on:
- db
ports:
- '10013:8069'
tty: true
command: '-- --dev=reload'
volumes:
- './addons:/mnt/extra-addons'
- './enterprise:/mnt/enterprise-addons'
- './config:/etc/odoo'
restart: always