-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (33 loc) · 932 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
version: "3.9"
services:
shoplaptop-api:
build:
context: .
restart: always
environment:
- DB_HOST=mysqldb
- SPRING_DATASOURCE_URL=jdbc:mysql://mysqldb:3306/shoplaptop2?autoReconnect=true&useSSL=false&maxReconnects=15&failOverReadOnly=false
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=123123
ports:
- 4001:4000
# volumes:
# - /home/hovanvydut/Temporary/images:/home/shoplaptop/src/main/resources/static/img
networks:
- shoplaptopapi-network
depends_on:
- mysqldb
mysqldb:
image: mysql:8.0.25
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=123123
- MYSQL_DATABASE=shoplaptop2
volumes:
- ./sql/seed:/docker-entrypoint-initdb.d
networks:
- shoplaptopapi-network
networks:
shoplaptopapi-network:
driver: bridge