forked from digi-serve/ab_runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source.docker-compose.yml
128 lines (121 loc) · 3.35 KB
/
source.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
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
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: ./assets
target: /data/assets
- 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
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: skipdaddy/ab-api-sails:<%=tag%>
# ports:
# - "9229:9229"
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
- type: bind
source: ./data
target: /data
#/api_sails
#bot_manager: our #slack bot service
bot_manager:
image: skipdaddy/ab-bot-manager:<%=tag%>
# ports:
# - "9229:9229"
volumes:
- 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
#/bot_manager
#notification_email: an smtp email service
notification_email:
image: skipdaddy/ab-notification-email:<%=tag%>
# ports:
# - "9229:9229"
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
# TODO: if we enable passing of file paths for attachments
# we'll need to include the common /data directory as well
#/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: skipdaddy/ab-file-processor:<%=tag%>
# ports:
# - "9229:9229"
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
- type: bind
source: ./data
target: /data
#/file_processor