-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
43 lines (41 loc) · 920 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
39
40
41
42
43
version: '3.6'
services:
mysql:
image: mysql:8.0.26
environment:
MYSQL_DATABASE: springblog
MYSQL_ROOT_USERNAME: root
MYSQL_ROOT_PASSWORD: rootraiz
ports:
- "3307:3306"
volumes:
- /home/braians/desenvolvimento/Docker/Volumes/Mysql/lib/mysql
networks:
- app-network
app:
image: braians/spring-blog-backend
build:
context: ./spring-blog-backend
dockerfile: Dockerfile
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/springblog
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: rootraiz
ports:
- 8080:8080
networks:
- app-network
depends_on:
- mysql
app-ui:
image: braians/spring-blog-client
build: ./spring-blog-client
ports:
- 4200:80
depends_on:
- app
networks:
- app-network
networks:
app-network:
driver: bridge