-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
138 lines (130 loc) · 3.66 KB
/
docker-compose.yml
File metadata and controls
138 lines (130 loc) · 3.66 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
services:
postgres:
profiles:
- sql
build:
context: .
dockerfile: Postgres.Dockerfile
command: -c config_file=/etc/postgresql.conf
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: boardbase
ports:
- "5432:5432"
volumes:
- ./postgresql.conf:/etc/postgresql.conf:ro
- pgdata:/var/lib/postgresql
sqlserver:
profiles:
- sql
image: mcr.microsoft.com/mssql/server:2022-CU21-GDR2-ubuntu-22.04
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: ${MSSQL_PASSWORD:-Password123!}
MSSQL_PID: Developer
MSSQL_COLLATION: Latin1_General_100_CI_AS_SC_UTF8
ports:
- "1433:1433"
volumes:
- sqlserver_data:/var/opt/mssql
mongodb:
profiles:
- mongo
image: mongodb/mongodb-community-server:8.2.2-ubuntu2204
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD:?error}
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
- mongodb-config:/data/configdb
- ./mongo/replica-set-init.sh:/scripts/replica-set-init.sh:ro
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "rsmtg"]
depends_on:
- mongodb-secondary1
- mongodb-secondary2
post_start:
- command: /scripts/replica-set-init.sh:ro
mongodb-secondary1:
profiles:
- mongo
image: mongodb/mongodb-community-server:8.2.2-ubuntu2204
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD:?error}
ports:
- "27018:27017"
volumes:
- mongodb-data-secondary1:/data/db
- mongodb-config-secondary1:/data/configdb
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "rsmtg"]
mongodb-secondary2:
profiles:
- mongo
image: mongodb/mongodb-community-server:8.2.2-ubuntu2204
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD:?error}
ports:
- "27019:27017"
volumes:
- mongodb-data-secondary2:/data/db
- mongodb-config-secondary2:/data/configdb
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "rsmtg"]
neo4j:
build:
context: ./neo4j
dockerfile: Dockerfile
volumes:
- neo4j-data:/data
- neo4j-logs:/logs
- ./neo4j/conf:/conf:ro
- ./neo4j/data:/import:ro
environment:
- NEO4J_AUTH_FILE=/run/secrets/neo4j_auth_file
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
# - NEO4J_CONFIG_FILE_CHARSET=utf8
ports:
- "7474:7474"
- "7687:7687"
secrets:
- neo4j_auth_file
secrets:
neo4j_auth_file:
file: ./neo4j/neo4j_auth.txt
volumes:
pgdata:
labels:
com.example.description: Postgres data volume
pgbackuptest:
labels:
com.example.description: Temporary volume for backup verification
sqlserver_data:
labels:
com.example.description: MS SQL Server data volume
mongodb-data:
labels:
pw.kd.description: MongoDB data volume
mongodb-config:
labels:
pw.kd.description: MongoDB config volume
mongodb-data-secondary1:
labels:
pw.kd.description: MongoDB secondary1 data volume
mongodb-config-secondary1:
labels:
pw.kd.description: MongoDB secondary1 config volume
mongodb-data-secondary2:
labels:
pw.kd.description: MongoDB secondary2 data volume
mongodb-config-secondary2:
labels:
pw.kd.description: MongoDB secondary2 config volume
neo4j-logs:
labels:
pw.kd.description: Neo4j logs volume
neo4j-data:
labels:
pw.kd.description: Neo4j data volume