-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
executable file
·70 lines (66 loc) · 1.37 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
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.7'
networks:
wabot_network:
driver: bridge
services:
engine:
networks:
- wabot_network
build:
context: ./
dockerfile: docker/engine.dockerfile
image: wabot_engine
container_name: wabot_engine
ports:
- "3002"
volumes:
- ./engine:/var/www
- /var/www/node_modules
restart: always
db:
networks:
- wabot_network
build:
context: ./
dockerfile: docker/database.dockerfile
image: wabot_db
container_name: wabot_db
ports:
- "5432:5432"
volumes:
- /opt/docker_wabot_pg_data:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_USER=kurniawan
- POSTGRES_PASSWORD=@@@udanup
- POSTGRES_DB=wabot_db
depends_on:
- engine
gui:
networks:
- wabot_network
build:
context: ./
dockerfile: docker/gui.dockerfile
image: wabot_gui
container_name: wabot_gui
volumes:
- ./gui:/var/www
restart: always
depends_on:
- db
web:
networks:
- wabot_network
build:
context: ./
dockerfile: docker/web.dockerfile
image: wabot_web
container_name: wabot_web
ports:
- "8080:80"
volumes:
- ./gui:/var/www
restart: always
depends_on:
- gui