-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1.2 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
52
53
54
55
56
57
version: '3'
volumes:
odoo12-web-data:
odoo12-db-data:
services:
odoo12:
build:
context: ./docker
dockerfile: Dockerfile
image: odoo:12
container_name: odoo12
links:
- db
ports:
- "8069:8069"
volumes:
- odoo12-web-data:/var/lib/odoo
- ./docker/config/odoo.conf:/etc/odoo/odoo.conf
- ./log/odoo-server.log:/etc/odoo/odoo-server.log
- ./extra-addons:/mnt/extra-addons
restart: always
privileged: true
db:
image: postgres:10.0
container_name: odoo12-postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo12-db-data:/var/lib/postgresql/data/pgdata
restart: always
pgweb:
image: sosedoff/pgweb
container_name: odoo12-pgweb
ports:
- "8080:8081"
environment:
- DATABASE_URL=postgres://odoo:odoo@db:5432/postgres?sslmode=disable
links:
- db
restart: always
nginx:
image: nginx
container_name: odoo12-nginx
volumes:
- ./docker/config/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
links:
- odoo12