forked from minhng92/odoo-16-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·51 lines (48 loc) · 1.38 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: '2'
services:
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4
restart: always
ports:
- "8050:80"
environment:
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
- PGADMIN_DEFAULT_PASSWORD=admin
volumes:
- ./pgadmin/servers.json:/pgadmin4/servers.json
postgresql:
container_name: postgresql
image: docker.io/bitnami/postgresql:16
volumes:
- 'postgresql_data:/bitnami/postgresql'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_USERNAME=bn_odoo
- POSTGRESQL_DATABASE=bitnami_odoo
odoo:
container_name: odoo
image: docker.io/bitnami/odoo:16.0.20240215-debian-12-r2
ports:
- '80:8069'
volumes:
- 'odoo_data:/bitnami/odoo'
- ../odoo-addons:/bitnami/odoo/data/addons/16.0
- ${PWD}/odoo.conf:/bitnami/odoo/conf/odoo.conf
depends_on:
- postgresql
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- ODOO_DATABASE_HOST=postgresql
- ODOO_DATABASE_PORT_NUMBER=5432
- ODOO_DATABASE_USER=bn_odoo
- ODOO_DATABASE_NAME=bitnami_odoo
volumes:
postgresql_data:
driver: local
odoo_data:
driver: local