Skip to content

Instantly share code, notes, and snippets.

@valkheim
Created December 18, 2019 17:01
Show Gist options
  • Save valkheim/db304559348f266f4be885d35cfa8fcd to your computer and use it in GitHub Desktop.
Save valkheim/db304559348f266f4be885d35cfa8fcd to your computer and use it in GitHub Desktop.
Odoo
version: '2'
services:
web:
image: odoo:12.0
depends_on:
- db
ports:
- "8069:8069"
volumes:
- odoo-web-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
db:
image: postgres:10
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
volumes:
odoo-web-data:
odoo-db-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment