-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 894 Bytes
/
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
version: '3.6'
services:
web:
image: amnil_odoo:14.20220901
container_name: amnil_odoo_web
build:
context: ./odoo-docker
network: host
depends_on:
- db
expose:
- '8069'
- '5678'
environment:
- HOST=db
- USER=odoo
- PASSWORD_FILE=/run/secrets/password
user: odoo
volumes:
- web_data:/var/lib/odoo
- $PWD/addons:/mnt/extra-addons
secrets:
- password
working_dir: /var/lib/odoo
db:
image: postgres:14-alpine
container_name: amnil_odoo_db
expose:
- '5432'
volumes:
- db_data:/var/lib/postgresql/data/pgdata
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD_FILE=/run/secrets/password
- PGDATA=/var/lib/postgresql/data/pgdata
secrets:
- password
volumes:
web_data:
db_data:
secrets:
password:
file: $PWD/secret