-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.13 KB
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
version: '3.7'
services:
identity:
image: identityorg/identity:latest
networks:
- identity
ports:
- 8080:8080
depends_on:
- mysql
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/db?useSSL=false
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
- SPRING_DATASOURCE_USERNAME=user
- SPRING_DATASOURCE_PASSWORD=pass
- SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT=org.hibernate.dialect.MySQL5Dialect
- SPRING_JPA_HIBERNATE_NAMING_PHYSICAL_STRATEGY=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
mysql:
image: mysql:5
networks:
- identity
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql
- MYSQL_DATABASE=db
- MYSQL_USER=user
- MYSQL_PASSWORD=pass
volumes:
- mysqldata:/var/lib/mysql/
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u user --password=pass
timeout: 5s
interval: 10s
retries: 10
start_period: 10s
volumes:
mysqldata:
networks:
identity:
ipam:
driver: default
config:
- subnet: 172.28.5.0/24