forked from ERPLibre/ERPLibre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
50 lines (45 loc) · 1.29 KB
/
docker-compose-dev.yml
File metadata and controls
50 lines (45 loc) · 1.29 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
version: "3.3"
services:
ERPLibre:
image: technolibre/erplibre-dev:12.0
# image: technolibre/erplibre-prod:pkg-12.0
# image: technolibre/erplibre-prod:deb-12.0
ports:
- 8069:8069
environment:
HOST: db
PASSWORD: mysecretpassword
USER: odoo
POSTGRES_DB: odoo
CURRENT_UID: ${CURRENT_UID}
depends_on:
- db
networks:
- front
command: odoo -c /ERPLibre/odoo/odoo.conf --without-demo=ALL -i base -d odoo
user: ${CURRENT_UID:?"Please run as follows 'CURRENT_UID=$(id -u):$(id -g) docker-compose up'"}
# user:
volumes:
- .:/ERPLibre
# See the volume section at the end of the file
- erplibre_data_dir:/var/lib/odoo
db:
image: postgres:12.3
environment:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: odoo
POSTGRES_DB: odoo
networks:
- front
networks:
front:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.237.0/24
# We configure volume without specific destination to let docket manage it. To configure it through docker use (read related documentation before continuing) :
# - docker volume --help
# - docker-compose down --help
volumes:
erplibre_data_dir: