forked from druidoo/docker-posbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.5 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
version: '2.4'
services:
db:
image: postgres:10.6
restart: unless-stopped
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: postgres
PGDATA: /var/lib/postgresql/data/pgdata
odoo:
image: druidoo/posbox:11.0
ports:
- "8069:8069"
tty: true
stdin_open: true
privileged: true
restart: unless-stopped
depends_on:
- db
volumes:
# Timezone from host
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# Hardware
- /dev/bus/usb:/dev/bus/usb
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
# Custom repositories
- ./repositories:/home/odoo/custom/repositories:ro
environment:
WAIT_PG: 'true'
LOG_LEVEL: 'debug'
LIMIT_TIME_CPU: 600
LIMIT_TIME_REAL: 1200
PGDATABASE: posbox
# All of your hw_modules should be server-wide modules
# - Don't add hw_posbox_upgrade as it not compatible with this image
# - Don't add hw_scanner as it's not needed, simply connect the scanner to your PC
SERVER_WIDE_MODULES: web,hw_proxy,hw_posbox_homepage,hw_scale,hw_escpos,hw_blackbox_be,hw_screen
# Custom config. You probably don't need to change anything here
CUSTOM_CONFIG: |-
[options]