Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 7cd4f80

Browse files
committed
hibernate: added docker mysql database
1 parent 72fcf22 commit 7cd4f80

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '3.6'
2+
services:
3+
hibernate-mysql:
4+
image: mysql:8.0.16
5+
container_name: hibernate.mysql
6+
command: mysqld --user=root --verbose
7+
volumes:
8+
- ./data/mysql:/var/lib/mysql
9+
# - ./dbcreation.sql:/tmp/dbcreation.sql
10+
# - ./import.sh:/tmp/import.sh
11+
ports:
12+
- "3306:3306"
13+
environment:
14+
MYSQL_DATABASE: "hibernate"
15+
MYSQL_USER: "hibernate_user"
16+
MYSQL_PASSWORD: "hibernate_pass"
17+
MYSQL_ROOT_PASSWORD: "root"
18+
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"

0 commit comments

Comments
 (0)