-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
executable file
·40 lines (40 loc) · 1.08 KB
/
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
35
36
37
38
39
40
version: '3.2'
services:
web:
image: odoo:${ODOO_VER}
container_name: ${ODOO_CONT_NAME}
depends_on:
- db
- smtp4dev
expose:
- "5858"
ports:
- "8069:8069"
- "5858:5858"
command: /usr/bin/python3 -m debugpy --listen 0.0.0.0:5858 /usr/bin/odoo --db_user=odoo --db_host=db --db_password=odoo
tty: true
volumes:
- ${PROJECT_LOCATION}/entrypoint.sh:/entrypoint.sh
- ${PROJECT_LOCATION}/config:/etc/odoo
- ${PROJECT_LOCATION}/addons:/mnt/extra-addons
- ${PROJECT_LOCATION}/enterprise:/mnt/enterprise
restart: on-failure
db:
image: postgres:${PSQL_VER}
container_name: ${PSQL_CONT_NAME}
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ${PROJECT_LOCATION}/psql:/var/lib/postgresql/data/pgdata
smtp4dev:
image: rnwood/smtp4dev:latest
container_name: ${SMTP_CONT_NAME}
ports:
- "5080:80"
- "25:25"
- "143:143"
hostname: smtp4dev_odoo
restart: always