-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
339 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
version: "3" | ||
|
||
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", | ||
"UseSSHTunnel": 0, | ||
"TunnelPort": "22", | ||
"TunnelAuthentication": 0, | ||
"KerberosAuthentication": false, | ||
"ConnectionParameters": { | ||
"sslmode": "prefer", | ||
"connect_timeout": 10, | ||
"sslcert": "<STORAGE_DIR>/.postgresql/postgresql.crt", | ||
"sslkey": "<STORAGE_DIR>/.postgresql/postgresql.key" | ||
}, | ||
"Tags": [] | ||
} | ||
} | ||
} | ||
image: busybox | ||
networks: | ||
- senzing | ||
read_only: true | ||
user: ${SENZING_UID:-1001}:${SENZING_GID:-1001} | ||
volumes: | ||
- /tmp:/output | ||
|
||
postgres: | ||
container_name: senzing-postgres | ||
environment: | ||
# See https://github.com/bitnami/bitnami-docker-postgresql#configuration | ||
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: bitnami/postgresql | ||
networks: | ||
- senzing | ||
ports: | ||
- 5432:5432 | ||
restart: always | ||
|
||
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> [email protected]</li> | ||
<li><b>Password:</b> password</li> | ||
</ul>" | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: password | ||
PGADMIN_SERVER_JSON_FILE: /var/lib/pgadmin/storage/postgres_postgres.com/servers.json | ||
image: dpage/pgadmin4 | ||
networks: | ||
- senzing | ||
ports: | ||
- 9171:80 | ||
- 9172:443 | ||
restart: always | ||
user: "${SENZING_UID:-1001}:0" | ||
volumes: | ||
- /tmp:/var/lib/pgadmin/storage | ||
|
||
postgres-init: | ||
container_name: senzing-postgres-init | ||
depends_on: | ||
- postgres | ||
environment: | ||
SENZING_TOOLS_DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/G2/?sslmode=disable" | ||
SENZING_TOOLS_DATASOURCES: "CUSTOMERS, REFERENCE, WATCHLIST" | ||
image: senzing/init-database | ||
networks: | ||
- senzing | ||
|
||
networks: | ||
senzing: | ||
name: ${SENZING_DOCKER_NETWORK:-senzing} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,225 @@ | ||
version: '3' | ||
version: "3" | ||
|
||
services: | ||
sut: | ||
build: . | ||
entrypoint: [""] | ||
command: ["/app/container-test.sh"] | ||
|
||
# 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://github.com/bitnami/bitnami-docker-postgresql#configuration | ||
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: bitnami/postgresql:${SENZING_DOCKER_IMAGE_VERSION_BITNAMI_POSTGRESQL:-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_PASSWORD: mysql | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_USER: mysql | ||
image: bitnami/mysql:${SENZING_DOCKER_IMAGE_VERSION_BITNAMI_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:-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:-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:/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> [email protected]</li> | ||
<li><b>Password:</b> password</li> | ||
</ul>" | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
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: bitnami/phpmyadmin:${SENZING_DOCKER_IMAGE_VERSION_BITNAMI_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_INI_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_INI_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_INI_DATABASE:-latest} | ||
networks: | ||
- senzing | ||
|
||
oracle-init: | ||
container_name: senzing-oracle-init | ||
depends_on: | ||
- oracle | ||
environment: | ||
SENZING_TOOLS_DATABASE_URL: "oci://sys:Passw0rd@oracle:1521/G2" | ||
image: senzing/init-database:${SENZING_DOCKER_IMAGE_VERSION_INI_DATABASE:-latest} | ||
networks: | ||
- senzing | ||
|
||
networks: | ||
senzing: | ||
name: ${SENZING_DOCKER_NETWORK:-senzing} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters