-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
171 lines (159 loc) · 4.16 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: '3.7'
services:
db:
image: mariadb:10.4.13
container_name: xxt_db
restart: always
# ports:
# - 3306:3306
volumes:
- ./docker/mariadb/conf:/etc/mysql/conf.d
# - ./docker/mariadb/data:/var/lib/mysql
# - ./docker/mariadb/log:/var/log/mysql
# environment:
# MYSQL_ROOT_PASSWORD: 123456
networks:
xxt_net:
php-fpm:
build: ./docker/php-fpm
image: xxt/php-fpm
container_name: xxt_php-fpm
restart: always
volumes:
- .:/usr/share/nginx/htm
networks:
xxt_net:
nginx:
build: ./docker/nginx
image: xxt/nginx
container_name: xxt_nginx
restart: always
volumes:
- .:/usr/share/nginx/html
links:
- php-fpm
- backapi
# ports:
# - 8080:80
# - 8099:8099
# environment:
# - NGINX_HTTP_PROTOCOL=http
# - NGINX_HTTP_HOST=localhost
# - NGINX_HTTP_PORT=8080
networks:
xxt_net:
adminer:
image: adminer
container_name: xxt_adminer
restart: always
# ports:
# - 9090:8080
networks:
xxt_net:
mongodb:
image: mongo:latest
container_name: xxt_mongodb
restart: always
# ports:
# - '27017:27017'
# volumes:
# - ./docker/mongodb/data:/data/db
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
logging:
driver: 'none'
networks:
xxt_net:
tms-finder:
image: jasony62/tfd-aio:latest
container_name: xxt_tms-finder
# ports:
# # - 3001:3000
# - 8090:80
# environment:
# # 关闭验证码
# - TFD_APP_AUTH_CAPTCHA_DISABLED=yes
# volumes:
# - ./kcfinder/upload:/usr/app/tfd/storage
# - ./tms-koa:/usr/app/xxt/tms-koa
# - ./docker/tms-finder/app.local.js:/usr/app/tfd/config/app.local.js
# - ./docker/tms-finder/fs.local.js:/usr/app/tfd/config/fs.js
# - ./docker/tms-finder/settings.json:/usr/share/nginx/html/tmsfinder/settings.json
networks:
xxt_net:
backapi:
build: ./api
image: xxt/api:latest
container_name: xxt_backapi
restart: always
# ports:
# - 3000:3000
networks:
xxt_net:
# swagger-ui:
# image: swaggerapi/swagger-ui
# container_name: xxt_swagger-ui
# restart: always
# # environment:
# # - URL=http://localhost:3000/oas
# # ports:
# # - '7070:8080'
# networks:
# xxt_net:
# zookeeper:
# image: bitnami/zookeeper:latest
# container_name: xxt_zk
# environment:
# - ALLOW_ANONYMOUS_LOGIN=yes
# kafka:
# image: bitnami/kafka:latest
# container_name: xxt_kafka
# environment:
# - KAFKA_BROKER_ID=1
# - ALLOW_PLAINTEXT_LISTENER=yes
# - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
# - KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
# - KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://:9092
# - KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
# volumes:
# - ./docker/kafka/logs:/bitnami/kafka
# depends_on:
# - zookeeper
# canal-server:
# image: canal/canal-server:v1.1.5
# container_name: xxt_canal_server
# # restart: unless-stopped
# # ports:
# # - 11111:11111
# environment:
# - canal.auto.scan=false
# - canal.instance.master.address=db:3306
# - canal.instance.dbUsername=canal
# - canal.instance.dbPassword=canal
# # - canal.instance.filter.regex=.*\\..*
# # - canal.instance.connectionCharset=UTF-8
# - canal.instance.filter.query.dml=true
# - canal.serverMode=kafka
# - canal.mq.servers=kafka:9092
# - canal.mq.topic=db-xxt
# - canal.mq.partition=0
# - canal.mq.flatMessage=true
# volumes:
# - ./docker/canal/xxt-log/:/home/admin/canal-server/logs/
# depends_on:
# - db
# - kafka
# mysqld-exporter:
# image: prom/mysqld-exporter
# container_name: xxt_mysql-exporter
# # ports:
# # - 9104:9104
# # environment:
# # - MYSQLD_EXPORTER_PASSWORD=
# volumes:
# - ./docker/mysql-exporter/my.cnf:/usr/local/mysqld_exporter/.my.cnf
# command: ['--config.my-cnf', '/usr/local/mysqld_exporter/.my.cnf']
networks:
xxt_net:
driver: bridge