-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 813 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 813 Bytes
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
services:
db:
image: mysql:8.0
container_name: non_stop_db
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_USER: admin
MYSQL_DATABASE: non_stop
ports:
- "3306:3306"
networks:
- backend
volumes:
- mysql_data:/var/lib/mysql
restart: always
app:
build:
context: .
dockerfile: Dockerfile
container_name: nonstop_api
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://localhost:3306/non_stop
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD:
ports:
- "8080:8080"
depends_on:
- db
networks:
- backend
restart: always
volumes:
mysql_data:
networks:
backend:
driver: bridge