Skip to content

Instantly share code, notes, and snippets.

@MrDavidChz
Forked from byk0t/docker-compose.yml
Created December 29, 2020 16:42
Show Gist options
  • Save MrDavidChz/930a24f1770f02fa04f2fa0ad1970f29 to your computer and use it in GitHub Desktop.
Save MrDavidChz/930a24f1770f02fa04f2fa0ad1970f29 to your computer and use it in GitHub Desktop.
Docker compose for odoo:14 and PostgreSQL:13
version: '3'
services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
web:
image: odoo:14.0
depends_on:
- db
ports:
- "8069:8069/tcp"
volumes:
- web-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
volumes:
db-data:
driver: local
web-data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment