forked from rubencabrera/odoo-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (34 loc) · 878 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Se necesita docker y docker-compose. Ejecutar con:
# docker-compose -f docker-compose.yml up
# Se iniciará un contenedor con postgresql y otro con odoo.
# Para evitar conflictos con el puerto en local si ya hay postgres
# se usa el 5433 en lugar del estándar 5432 de postgresql.
---
version: '3.7'
services:
db:
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
image: postgres:9.6
ports:
- "5433:5432"
restart: always
volumes:
- data_storage:/var/lib/postgresql/data
odoo14:
container_name: odoo14
depends_on:
- db
image: "rubencabrera/odoo-docker:16.0.0"
ports:
- "8069:8069"
- "8071:8071"
- "8072:8072"
restart: always
volumes:
- odoo_data:/var/lib/odoo
volumes:
# TODO: The local paths need to exist for volumes to be mounted
data_storage:
odoo_data: