-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
24 lines (23 loc) · 752 Bytes
/
compose.yml
File metadata and controls
24 lines (23 loc) · 752 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
services:
mysql:
container_name: spring-java-ddd-mysql
image: mysql:8
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=mooc
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
entrypoint:
sh -c "
echo 'CREATE DATABASE IF NOT EXISTS mooc;CREATE DATABASE IF NOT EXISTS backoffice;' > /docker-entrypoint-initdb.d/init.sql;
/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
"
command: [ "--default-authentication-plugin=mysql_native_password" ]
rabbitmq:
container_name: spring-java-ddd-rabbitmq
image: 'rabbitmq:3.7-management'
restart: unless-stopped
ports:
- "5672:5672"
- "15672:15672"