-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
219 lines (205 loc) · 6.15 KB
/
docker-compose.test.yaml
File metadata and controls
219 lines (205 loc) · 6.15 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
services:
# makefile makes a metadata file for pgadmin.
makefile:
container_name: senzing-makefile
command:
- sh
- -c
- mkdir /output/postgres_postgres.com; echo $${FILE_CONTENTS} >> /output/postgres_postgres.com/servers.json
environment:
FILE_CONTENTS: >-
{
"Servers": {
"1": {
"Name": "senzing",
"Group": "Servers",
"Host": "senzing-postgres",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "postgres",
"SSLMode": "prefer",
"SSLCert": "<STORAGE_DIR>/.postgresql/postgresql.crt",
"SSLKey": "<STORAGE_DIR>/.postgresql/postgresql.key",
"SSLCompression": 0,
"Timeout": 10,
"UseSSHTunnel": 0,
"TunnelPort": "22",
"TunnelAuthentication": 0
}
}
}
image: busybox:${SENZING_DOCKER_IMAGE_VERSION_BUSYBOX:-latest}
networks:
- senzing
read_only: true
user: ${SENZING_UID:-1001}:${SENZING_GID:-1001}
volumes:
- /tmp:/output
postgres:
container_name: senzing-postgres
environment:
# See https://hub.docker.com/_/postgres "Environment Variables"
POSTGRESQL_DATABASE: G2
POSTGRESQL_PASSWORD: senzing
POSTGRESQL_POSTGRES_PASSWORD: postgres
POSTGRESQL_USERNAME: senzing
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USERNAME:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
image: postgres:${SENZING_DOCKER_IMAGE_VERSION_POSTGRES:-latest}
networks:
- senzing
ports:
- 5432:5432
restart: always
mysql:
container_name: senzing-mysql
environment:
# See https://hub.docker.com/_/mysql/ "Environment Variables"
MYSQL_DATABASE: G2
MYSQL_NATIVE_PASSWORD: "ON"
MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: mysql
image: mysql:${SENZING_DOCKER_IMAGE_VERSION_MYSQL:-latest}
networks:
- senzing
ports:
- 3306:3306
restart: always
mssql:
container_name: senzing-mssql
environment:
# See https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables
ACCEPT_EULA: Y
MSSQL_PID: Developer
MSSQL_SA_PASSWORD: Passw0rd
image: mcr.microsoft.com/mssql/server:${SENZING_DOCKER_IMAGE_VERSION_MSSQL_SERVER:-2025-latest}
networks:
- senzing
ports:
- 1433:1433
restart: always
mssql-create-db:
command:
- /opt/mssql-tools18/bin/sqlcmd
- -C
- -P
- Passw0rd
- -Q
- "CREATE DATABASE G2"
- -S
- senzing-mssql,1433
- -U
- sa
container_name: senzing-mssql-create-database
depends_on:
- mssql
image: mcr.microsoft.com/mssql/server:${SENZING_DOCKER_IMAGE_VERSION_MSSQL_SERVER:-2025-latest}
networks:
- senzing
restart: on-failure
oracle:
container_name: senzing-oracle
environment:
# See https://container-registry.oracle.com/ords/ocr/ba/database/free
ORACLE_PWD: Passw0rd
image: container-registry.oracle.com/database/free:${SENZING_DOCKER_IMAGE_VERSION_ORACLE_FREE:-latest}
networks:
- senzing
ports:
- 1521:1521
restart: always
volumes:
- ./testdata/oracle/rootfs/opt/oracle/scripts/startup:/opt/oracle/scripts/startup
pgadmin:
container_name: senzing-pgadmin
depends_on:
- makefile
environment:
# See https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
PGADMIN_CONFIG_DEFAULT_SERVER: '"0.0.0.0"'
PGADMIN_CONFIG_LOGIN_BANNER: |-
"<h4>Senzing demonstration</h4>
Although pgAdmin can be configured for security,
<br/>the following credentials are used for demonstration.
<ul>
<li><b>Username:</b> postgres@postgres.com</li>
<li><b>Password:</b> password</li>
</ul>"
PGADMIN_DEFAULT_EMAIL: postgres@postgres.com
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_SERVER_JSON_FILE: /var/lib/pgadmin/storage/postgres_postgres.com/servers.json
image: dpage/pgadmin4:${SENZING_DOCKER_IMAGE_VERSION_DPAGE_PGADMIN4:-latest}
networks:
- senzing
ports:
- 9171:80
- 9172:443
restart: always
user: "${SENZING_UID:-1001}:0"
volumes:
- /tmp:/var/lib/pgadmin/storage
phpmyadmin:
container_name: senzing-phpmyadmin
depends_on:
- mysql
environment:
DATABASE_HOST: mysql
image: phpmyadmin:${SENZING_DOCKER_IMAGE_VERSION_PHPMYADMIN:-latest}
networks:
- senzing
ports:
- 9173:8080
restart: always
adminer:
container_name: senzing-adminer
environment:
ADMINER_DEFAULT_SERVER: senzing-mssql
image: senzing/adminer:${SENZING_DOCKER_IMAGE_VERSION_ADMINER:-latest}
networks:
- senzing
ports:
- 9177:8080
restart: always
postgres-init:
container_name: senzing-postgres-init
depends_on:
- postgres
environment:
SENZING_TOOLS_DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/G2/?sslmode=disable"
image: senzing/init-database:${SENZING_DOCKER_IMAGE_VERSION_INIT_DATABASE:-latest}
networks:
- senzing
mysql-init:
container_name: senzing-mysql-init
depends_on:
- mysql
environment:
SENZING_TOOLS_DATABASE_URL: "mysql://mysql:mysql@mysql:3306/G2"
image: senzing/init-database:${SENZING_DOCKER_IMAGE_VERSION_INIT_DATABASE:-latest}
networks:
- senzing
mssql-init:
container_name: senzing-mssql-init
depends_on:
- mssql
environment:
SENZING_TOOLS_DATABASE_URL: "mssql://sa:Passw0rd@mssql:1433/G2"
image: senzing/init-database:${SENZING_DOCKER_IMAGE_VERSION_INIT_DATABASE:-latest}
networks:
- senzing
oracle-init:
container_name: senzing-oracle-init
depends_on:
- oracle
environment:
SENZING_TOOLS_DATABASE_URL: "oci://pdbadmin:Passw0rd@oracle:1521/FREEPDB1"
image: senzing/init-database:${SENZING_DOCKER_IMAGE_VERSION_INIT_DATABASE:-latest}
networks:
- senzing
networks:
senzing:
name: ${SENZING_DOCKER_NETWORK:-senzing-network}