-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
41 lines (38 loc) · 1.31 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
# spring boot initializes this docker-compose (with local profile) if `spring.docker.compose.profiles.active=local` property is set
version: '3'
services:
emailhog:
image: 'mailhog/mailhog'
container_name: mailhog
ports:
- 1025:1025
networks:
- note-app-network
profiles:
- mailHog
- all
mysql:
image: 'mysql'
environment:
- "MYSQL_ROOT_PASSWORD=password"
- "MYSQL_DATABASE=noteappdb"
ports:
- 3306:3306
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8mb4 --explicit_defaults_for_timestamp
networks:
- note-app-network
labels:
#org.springframework.boot.ignore: true #use this to omit this from initialization
# this will be sent to org.springframework.boot.docker.compose.service.connection.jdbc.JdbcUrlBuilder.build to build jdbc URL
org.springframework.boot.jdbc.parameters: useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
profiles:
- all
volumes:
esdata1:
driver: local
networks:
note-app-network:
driver: bridge
#run using
#docker-compose -f docker-compose.yml up
# or just docker-compose up