forked from falconsoft3d/docker-odoo-15
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
37 lines (37 loc) · 946 Bytes
/
docker-compose.yaml
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
35
36
37
version: '3'
services:
web:
platform: linux/x86_64
container_name: ${WEB_HOST}
image: ${WEB_IMAGE_NAME}:${WEB_IMAGE_TAG}
build: ./
depends_on:
- db
ports:
- "${WEB_PORT}:8069"
volumes:
- odoo-web-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
- ./addons-customize:/mnt/extra-addons-customize
environment:
- VIRTUAL_HOST=odoo15.marlonfalcon.com
entrypoint: "/usr/bin/odoo -c /etc/odoo/odoo.conf"
restart: always
db:
platform: linux/x86_64
container_name: ${DB_HOST}
image: ${DB_IMAGE}:${DB_TAG}
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PASSWD}
- POSTGRES_USER=${DB_USER}
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "${DB_PORT}:5432"
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
restart: always
volumes:
odoo-db-data:
odoo-web-data: