-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (61 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
62 lines (61 loc) · 1.59 KB
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
52
53
54
55
56
57
58
59
60
61
62
services:
odoo:
platform: linux/amd64
container_name: ${PROJECT_CODE:-BASE}-ODOO
build: .
depends_on:
- db
ports:
- "${ODOO_PORT:-8069}:8069"
tty: true
stdin_open: true
restart: unless-stopped
volumes:
- odoo-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons_themes:/mnt/themes
- ./addons_bp:/mnt/addons_bp
- ./addons_ext:/mnt/addons_ext
- ./addons_repos_ext:/mnt/addons_repos_ext
db:
container_name: ${PROJECT_CODE:-BASE}-DB
image: postgres:12
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data/pgdata
pgadmin:
container_name: ${PROJECT_CODE:-BASE}-PGADMIN
image: dpage/pgadmin4:6.14
depends_on:
- db
environment:
PGADMIN_DEFAULT_EMAIL: dev@bloopark.de
PGADMIN_DEFAULT_PASSWORD: 1234
PGADMIN_LISTEN_PORT: 80
ports:
- "${PGADMIN_PORT:-8099}:80"
tty: true
restart: unless-stopped
volumes:
- pgadmin-data:/var/lib/pgadmin
- ./config/servers.json:/pgadmin4/servers.json
- ./config/pgpass:/pgadmin4/pgpass
links:
- "db:psql-server"
# Uncomment if you want to use mailhog to test email sending
# Check Readme file for more information
# mailhog:
# image: mailhog/mailhog
# container_name: ${PROJECT_CODE:-BASE}-MAIL
# ports:
# - "1025:1025"
# - "8025:8025"
volumes:
odoo-data:
postgres-data:
pgadmin-data: