Skip to content

Instantly share code, notes, and snippets.

@yepes
Created March 13, 2023 18:58
Show Gist options
  • Select an option

  • Save yepes/1a92f81ec4aaa3bf34aee94198511e91 to your computer and use it in GitHub Desktop.

Select an option

Save yepes/1a92f81ec4aaa3bf34aee94198511e91 to your computer and use it in GitHub Desktop.
NIFI - Caso 6: Trabajando con MySQL
services:
nifi:
ports:
- "8443:8443"
volumes:
- ./mysql-connector-j-8.0.31.jar:/opt/mysql-connector-j-8.0.31.jar
image: apache/nifi:latest
environment:
SINGLE_USER_CREDENTIALS_USERNAME: nifi
SINGLE_USER_CREDENTIALS_PASSWORD: nifinifinifi
NIFI_JVM_HEAP_MAX: 2g
links:
- mongodb
- mysql
mysql:
image: mysql:latest
container_name: iabd-mysql-nifi
restart: always
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
TZ: Europe/Madrid
MYSQL_ROOT_PASSWORD: iabd
MYSQL_DATABASE: retail_db
MYSQL_USER: iabd
MYSQL_PASSWORD: iabd
mongodb:
ports:
- "27017:27017"
image: mongo:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment