services: odoo: build: context: . dockerfile: Dockerfile image: danieluac/odoo:dev-16.0 container_name: odoo_16_dev restart: always ports: - "8072:8072" - "8069:8069" - "5678:5678" networks: - odoo-network volumes: - odoo-web-data:/var/lib/odoo - ./:/opt/odoo/addons/custom_addons # - ./.config/odoo.conf:/etc/odoo/odoo.conf - ./odoo-debug.sh:/odoo-debug.sh entrypoint: ["/odoo-debug.sh"] environment: - ODOO_DEBUG=true - ODOO_DEMO=false - UPDATE_MODULES=base,mail depends_on: - db db: image: postgres:15.4 container_name: odoo_db restart: always environment: - POSTGRES_USER=odoo - POSTGRES_PASSWORD=odoo - POSTGRES_DB=postgres - PGDATA=var/lib/postgresql/data/dbfiles ports: - "5432:5432" networks: - odoo-network volumes: - odoo-db-data:/var/lib/postgresql/data/dbfiles volumes: odoo-db-data: odoo-web-data: networks: odoo-network: driver: bridge