forked from osopromadze/Spring-Boot-Blog-REST-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 715 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (29 loc) · 715 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
version: '3'
services:
mysql:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'blogapi'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'root'
MYSQL_ROOT_PASSWORD: 'root'
ports:
- '3306'
networks:
- production-network
application:
build:
dockerfile: ./Dockerfile
context: .
image: michel-eckhardt/spring-boot-blog
container_name: spring-boot-blog
ports:
- "8080:8080"
networks:
- production-network
depends_on:
- "mysql"
networks:
production-network:
driver: bridge