-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.prod.yml
executable file
·116 lines (107 loc) · 2.51 KB
/
docker-compose.prod.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
version: "3"
services:
web:
extends:
file: docker/server.yml
service: web
restart: always
depends_on:
- db
networks:
- bcloud-network
nginx:
extends:
file: docker/server.yml
service: nginx
restart: always
links:
- web
networks:
- bcloud-network
ports:
- 8000:80
- 443:443
db:
extends:
file: docker/database.yml
service: db
restart: always
networks:
- bcloud-network
adminer:
extends:
file: docker/database.yml
service: adminer
restart: always
networks:
- bcloud-network
ports:
- 8200:8080
redis:
image: "redis:alpine"
volumes:
- "productionredis:/data"
networks:
- bcloud-network
restart: always
elastic:
extends:
file: docker/elastic.yml
service: elasticsearch
restart: always
networks:
- bcloud-network
lilypond:
extends:
file: docker/addons.yml
service: lilypond
restart: always
networks:
- bcloud-network
# # grafana used for graphing mysql data
# grafana:
# image: grafana/grafana
# ports:
# - "3123:3000"
# environment:
# GF_INSTALL_PLUGINS: percona-percona-app
# networks:
# - bcloud-network
# # tool to connect to mysql instance, and allow prometheus to collect mysql stats
# prom_mysql_exporter:
# image: prom/mysqld-exporter
# links:
# - db
# ports:
# - "9104:9104"
# environment:
# - DATA_SOURCE_NAME=${DB_USERNAME}:${DB_PASSWORD}@(${DB_HOST}:${DB_PORT})/${DB_DATABASE}
# - collect.info_schema.tablestats=true
# - collect.info_schema.userstats=true
# - collect.info_schema.query_response_time=true
# - collect.auto_increment.columns=true
# - collect.binlog_size=true
# - collect.perf_schema.eventsstatements=true
# - collect.perf_schema.eventswaits=true
# - collect.perf_schema.file_events=true
# - collect.perf_schema.indexiowaits=true
# - collect.perf_schema.tableiowaits=true
# - collect.perf_schema.tablelocks=true
# networks:
# - bcloud-network
# # prometheus stores and handles timeseries data for statistics around mysql
# prometheus:
# image: prom/prometheus
# volumes:
# - ./docker/config/prometheus:/etc/prometheus
# links:
# - prom_mysql_exporter
# ports:
# - 9090
# networks:
# - bcloud-network
networks:
bcloud-network:
volumes:
productionredis:
driver: local