Download this file

docker-compose.yml    31 lines (29 with data), 920 Bytes

 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
#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