forked from digi-serve/ab_runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source.docker-compose.dev.yml
146 lines (139 loc) · 3.61 KB
/
source.docker-compose.dev.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: "3.2"
services:
#nginx setup
web:
image: nginx
ports:
- "<%=port%>:80"
- "443:443"
volumes:
- type: bind
source: ./nginx/html
target: /usr/share/nginx/html
- type: bind
source: ./nginx/nginx.conf
target: /etc/nginx/nginx.conf
- type: bind
source: ./nginx/default.conf
target: /etc/nginx/conf.d/default.conf
- type: bind
source: ./nginx/ssl
target: /etc/ssl/certs
- type: bind
source: ./assets
target: /data/assets
depends_on:
- api_sails
#/nginx
#db: use Maria DB as our backend DB
db:
image: mariadb
ports:
- "<%=portDB%>:3306"
environment:
MYSQL_ROOT_PASSWORD_FILE: /secret/password
volumes:
- type: bind
source: ./mysql/conf.d/my.cfg
target: /etc/mysql/conf.d/my.cfg
- type: bind
source: ./mysql/init
target: /docker-entrypoint-initdb.d
- type: bind
source: ./mysql/data
target: /var/lib/mysql
# - type: bind
# source: ./mysql/conf.d
# target: /etc/mysql/conf.d
- type: bind
source: ./mysql/key
target: /key
- type: bind
source: ./mysql/password
target: /secret/password
# on windows: use this command. (be sure to clear out mysql/data folder)
# command: mysqld --innodb-flush-method=littlesync --innodb-use-native-aio=OFF --log_bin=ON
#/db
#api_sails: our API end point
api_sails:
image: node
# ports:
# - "9229:9229"
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
- type: bind
source: ./developer/api_sails
target: /app
- type: bind
source: ./data
target: /data
working_dir: /app
command: npm run dev
#/api_sails
#bot_manager: our #slack bot service
bot_manager:
image: node
# ports:
# - "1338:1338"
volumes:
- type: bind
source: ./developer/bot_manager
target: /app
- type: bind
source: ./config/local.js
target: /app/config/local.js
# sharing .sock files currently don't work on docker-for-mac:
# https://github.com/docker/for-mac/issues/483
# For a Mac host, configure config/local.js to hostConnection.tcp
# but it doesn't hurt to include the /tmp dir for all platforms.
- type: bind
source: /tmp
target: /tmp
working_dir: /app
command: npm run dev
#/bot_manager
#notification_email: an smtp email service
notification_email:
image: node
# ports:
# - "9229:9229"
volumes:
- type: bind
source: ./developer/notification_email
target: /app
- type: bind
source: ./config/local.js
target: /app/config/local.js
working_dir: /app
command: npm run dev
#/notification_email
# #watchtower: monitor and update our running containers
# watchtower:
# image: v2tec/watchtower
# volumes:
# # - /var/run/docker.sock:/var/run/docker.sock
# - type: bind
# source: /var/run/docker.sock
# target: /var/run/docker.sock
# command: --interval 10 --debug
# #/watchtower
#file_processor: A service to manage uploaded files.
file_processor:
image: node
# ports:
# - "9229:9229"
working_dir: /app
command: npm run dev
volumes:
- type: bind
source: ./developer/file_processor
target: /app
- type: bind
source: ./config/local.js
target: /app/config/local.js
- type: bind
source: ./data
target: /data
#/file_processor