generated from CodelyTV/java-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·55 lines (51 loc) · 1.35 KB
/
docker-compose.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3'
services:
mysql:
container_name: codelytv-java_ddd_skeleton-mysql
image: mysql:8
ports:
- "3360:3306"
environment:
- 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: codelytv-java_ddd_skeleton-rabbitmq
image: 'rabbitmq:3.7-management'
restart: unless-stopped
ports:
- 5630:5672
- 8090:15672
environment:
- RABBITMQ_DEFAULT_USER=codelytv
- RABBITMQ_DEFAULT_PASS=c0d3ly
elasticsearch:
container_name: codelytv-java_ddd_skeleton-elasticsearch
image: 'elasticsearch:6.8.4'
restart: unless-stopped
ports:
- 9300:9300
- 9200:9200
environment:
- discovery.type=single-node
java:
container_name: codelytv-ddd_skeleton-java
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8030:8080"
volumes:
- .:/app:delegated
env_file:
- .env
tty: true
depends_on:
- mysql
- rabbitmq