-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
44 lines (41 loc) · 1.04 KB
/
docker-compose-dev.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
version: "2"
services:
db:
image: mariadb:10.3
# restart: always
ports:
- 3306:3306
# volumes:
# - ./docker-persistence/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev123
- MYSQL_DATABASE=temp_db
adminer:
image: adminer
depends_on:
- db
ports:
- 8000:8080
# spring:
# build: .
# restart: always
# depends_on:
# - db
# environment:
# # required arguments
# - SPRING_DATASOURCE_URL=jdbc:mariadb://db:3306/temp_db
# - SPRING_DATASOURCE_USERNAME=dev
# - SPRING_DATASOURCE_PASSWORD=dev123
# - SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.mariadb.jdbc.Driver
# - SPRING_MAIL_USERNAME=mail@example.com
# - SPRING_MAIL_PASSWORD=N0tTh3Actu4lP4SSw0rd
# # optional arguments
# # - SERVER_PORT=8090
# # - DEBUG=true
# # - SPRING_THYMELEAF_CACHE=false
# # - LOGGING_LEVEL_WEB=DEBUG
# # network_mode: host
# ports:
# - 8090:8090