#made by Miguel Rodrigues @ KBZ miguel.rodrigues@knowledgebiz.pt
version: '2'
services:
neenabler:
container_name: notificationenabler
links:
- miguelmysqldbservice
build: /home/mrodrigues/Documents/notification-enabler
ports:
- "5000:5000"
depends_on:
- miguelmysqldbservice
miguelmysqldbservice:
container_name: "mysqlservice"
image: mysql:5.7
ports:
- "3306:3306"
restart: always
environment:
MYSQL_DATABASE: notifications
MYSQL_USER: mrodrigues
MYSQL_PASSWORD: rodriguesm
MYSQL_ROOT_PASSWORD: root
# MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
volumes:
- ./dbdata:/var/lib/mysql
- ./creation.sql:/tmp/creation.sql
- ./import.sh:/tmp/import.sh