forked from BrighterCommand/Brighter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
117 lines (106 loc) · 2.33 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
117 lines (106 loc) · 2.33 KB
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
version: '2'
services:
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq-home:/var/lib/rabbitmq
eventstore:
image: eventstore/eventstore
ports:
- "1113:1113" # TCP (default 1113)
- "2113:2113" # HTTP (default 2113)
volumes:
- eventstore-data:/var/lib/eventstore
environment:
- EVENTSTORE_RUN_PROJECTIONS=ALL
- EVENTSTORE_START_STANDARD_PROJECTIONS=TRUE
# Need to give 4GB of memory to Docker for SQL
sqlserver:
image: microsoft/mssql-server-linux
ports:
- "1433:1433"
volumes:
- sqlserver-data:/var/opt/mssql
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=password
mysql:
image: mysql
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
redis-master:
image: redis
volumes:
- redis-master-data:/data
command: redis-server --appendonly yes
ports:
- "6379:6379"
redis-slave:
image: redis
volumes:
- redis-slave-data:/data
command: redis-server --slaveof redis-master 6379 --appendonly yes
# Instance 1
redis-sentinel:
build: ./samples/containers/redis-sentinel
volumes:
- redis-s1-data:/redis
links:
- redis-master
# Instance 2
redis-sentinel1:
build: ./samples/containers/redis-sentinel
volumes:
- redis-s1-data:/redis
links:
- redis-master
# Instance 3
redis-sentinel2:
build: ./samples/containers/redis-sentinel
volumes:
- redis-s1-data:/redis
links:
- redis-master
postgres:
image: postgres
restart: on-failure
volumes:
- postgres-data:/var/lib/postgresql
- postgres-config:/etc/postgresql
- postgres-logs:/var/log/postgresql
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: password
volumes:
rabbitmq-home:
driver: local
redis-master-data:
driver: local
redis-slave-data:
driver: local
eventstore-data:
driver: local
redis-s1-data:
driver: local
redis-s2-data:
driver: local
redis-s3-data:
driver: local
mysql-data:
driver: local
sqlserver-data:
driver: local
postgres-data:
driver: local
postgres-config:
driver: local
postgres-logs:
driver: local