Skip to content

Instantly share code, notes, and snippets.

@juniorUsca
Created October 4, 2018 17:48
Show Gist options
  • Save juniorUsca/9e91b308fd5b2b3fea5b7e64a07bfd09 to your computer and use it in GitHub Desktop.
Save juniorUsca/9e91b308fd5b2b3fea5b7e64a07bfd09 to your computer and use it in GitHub Desktop.
odoo docker compose
version: '3'
services:
web:
image: odoo:11.0
depends_on:
- db
ports:
- 80:8069
- 443:8071
volumes:
- odoo-web-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
environment:
- HOST=db
- USER=odoo
- PASSWORD=hcodoo
db:
image: postgres:9.6
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=hcodoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
odoo-web-data:
driver: local
odoo-db-data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment