-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
38 lines (36 loc) · 1017 Bytes
/
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
version: '2.4'
services:
aomd:
build: services/portfolio
image: aomd-server:latest
volumes:
- ./services/portfolio/build/libs/aomd-server.jar:/HOME/spring/app.jar
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/aomd-db
SPRING_DATASOURCE_USERNAME: user
SPRING_DATASOURCE_PASSWORD: 1234
SPRING_DATASOURCE_DATABASE_PLATFORM: org.hibernate.dialect.MySQL5Dialect
SPRING_PROFILES_ACTIVE: dev
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:5.7
platform: "linux/x86_64"
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_DATABASE=aomd-db
- MYSQL_USER=user
- MYSQL_PASSWORD=1234
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
healthcheck:
test: "/usr/bin/mysql -uuser -p1234 --execute \"SHOW DATABASES;\""
interval: 10s
timeout: 5s
retries: 10