-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (49 loc) · 1.13 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
41
42
43
44
45
46
47
48
49
50
51
version: '3.7'
services:
odoo:
image: odoo:14.0
container_name: odoo-app
build:
context: ./odoo
restart: always
environment:
- HOST=odoo-db
command:
--without-demo all
ports:
- 8069:8069
- 8072:8072
volumes:
- ./odoo/sessions:/var/lib/odoo/sessions:rw
- ./odoo/filestore:/var/lib/odoo/filestore:rw
- ./odoo/addons:/mnt/extra-addons
depends_on:
- db
db:
image: postgres:10
container_name: odoo-db
build:
context: ./postgres
restart: always
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./postgres/backups:/BACKUP:rw
- ./postgres/pgdata:/var/lib/postgresql/data/pgdata:rw
pgadmin:
image: dpage/pgadmin4:latest
container_name: odoo-pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pgadmin4pass
PGADMIN_LISTEN_PORT: 80
ports:
- 8084:80
volumes:
- ./pgadmin4:/var/lib/pgadmin
depends_on:
- db