-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (102 loc) · 3.03 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
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
version: "3.2"
services:
#db: use Maria DB as our backend DB
db:
image: docker.io/library/mariadb:10.5.7
ports:
# Sub in your desired port number
# Or comment this out to disable
- "_DB_EXTERNAL_PORT_:3306"
environment:
MYSQL_ROOT_PASSWORD_FILE: /secret/password
volumes:
- type: bind
source: ./mysql/conf.d/my-noencrypt.cnf
target: /etc/mysql/conf.d/my.cnf
- 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
# when there is a problem with : Error: ER_CRASHED_ON_USAGE: Table 'AAAAAA' is marked as crashed and should be repaired
# this can happen with the alter table algorithm: try the safest(and slowest) COPY
# command: ["mysqld", "--alter-algorithm=copy"]
# 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
# See https://github.com/appdevdesigns/ab-production-image
api_sails:
image: docker.io/digiserve/ab-sails-api:latest
depends_on:
- db
- redis
deploy:
replicas: 1
restart_policy:
condition: on-failure
ports:
# Sub in your desired port number
# This is unencrypted http
- "_SAILS_EXTERNAL_PORT_:1337"
environment:
- COTE_DISCOVERY_REDIS_HOST=redis
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
- type: bind
source: ./mysql/password
target: /secret/password
- type: bind
source: ./data
target: /app/data
#/api_sails
#redis: use redis to allow cote services to find each other across this stack
redis:
image: docker.io/library/redis:6.2.1
#ports:
# - 6379:6379
volumes:
- type: bind
source: ./redis/data
target: /data
command: redis-server --appendonly yes
#/redis
#notification_email
# See https://github.com/appdevdesigns/ne-production-image
notification_email:
image: docker.io/digiserve/ab-notification-email
environment:
- COTE_DISCOVERY_REDIS_HOST=redis
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
depends_on:
- redis
- api_sails
#/notification_email
#process_manager: (AppBuilder) a micro service to manage our process tasks
# See https://github.com/appdevdesigns/pm-production-image
process_manager:
image: docker.io/digiserve/ab-process-manager:latest
environment:
- COTE_DISCOVERY_REDIS_HOST=redis
volumes:
- type: bind
source: ./config/local.js
target: /app/config/local.js
depends_on:
- redis
- api_sails
#/process_manager