Skip to content

Instantly share code, notes, and snippets.

@yassinelachgar
Created November 1, 2021 10:45
Show Gist options
  • Save yassinelachgar/30e8a89b3c61f8badb92b2f9d113f4e8 to your computer and use it in GitHub Desktop.
Save yassinelachgar/30e8a89b3c61f8badb92b2f9d113f4e8 to your computer and use it in GitHub Desktop.
basic docker compose
version: '2'
services:
db:
image: postgres:13
container_name: pgodoo
ports:
- "5432:5432"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "5mb"
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
restart: always # run as a service
volumes:
- ./postgresql:/var/lib/postgresql/data
odoo14:
image: odoo:14
container_name: odoo14
depends_on:
- db
ports:
- "8069:8069"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "5mb"
tty: true
stdin_open: true
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo
volumes:
- ./my-extra-addons:/mnt/extra-addons
- ./etc:/etc/odoo
- ./odoo-web-data:/var/lib/odoo
restart: always # run as a service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment