-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (45 loc) · 1.21 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
version: '2.1'
services:
solirius-springboot-bolierplate:
build:
context: .
environment:
- SERVER_PORT=8080
- SPRING_DATASOURCE_URL=jdbc:postgresql://solirius-springboot-bolierplate-postgres-db/solirius
- SPRING_DATASOURCE_USERNAME=solirius
- SPRING_DATASOURCE_PASSWORD=solirius
links:
- solirius-springboot-bolierplate-postgres-db
# - solirius-springboot-bolierplate-mysql-db
depends_on:
- solirius-springboot-bolierplate-postgres-db
# - solirius-springboot-bolierplate-mysql-db
ports:
# check .env
- 8080:8080
- 5050:5050
solirius-springboot-bolierplate-postgres-db:
image: postgres
restart: always
environment:
- POSTGRES_USER=solirius
- POSTGRES_PASSWORD=solirius
- POSTGRES_DB=solirius
ports:
- 5432:5432
solirius-springboot-bolierplate-mysql-db:
image: mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=solirius
- MYSQL_USER=solirius
- MYSQL_PASSWORD=solirius
- MYSQL_DATABASE=solirius
ports:
- 3306:3306
# login with root:password at localhost:8080
adminer:
image: adminer
restart: always
ports:
- 8000:8080