Skip to content

Instantly share code, notes, and snippets.

@faaaaabi
Last active October 28, 2018 21:12
Show Gist options
  • Save faaaaabi/a94ba78d086cf9c4c5ca5a2c931c609e to your computer and use it in GitHub Desktop.
Save faaaaabi/a94ba78d086cf9c4c5ca5a2c931c609e to your computer and use it in GitHub Desktop.
docker-compose file for odoo with persitent storage. Based on https://hub.docker.com/_/odoo/
version: '2'
services:
web:
image: odoo:12.0
depends_on:
- db
ports:
- "8069:8069"
volumes:
- odoo-web-data:/var/lib/odoo
db:
image: postgres:10
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
- 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