forked from 9oormthonUniv-seoultech/PROJECT_TEAM_APP_BE0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (45 loc) · 1015 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
44
45
46
version: '3.1'
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'billage'
MYSQL_ROOT_PASSWORD: 'COMPOSE_ROOT_PASSWORD'
MYSQL_USER: 'COMPOSE_USER'
MYSQL_PASSWORD: 'COMPOSE_PASSWORD'
ports:
- '3305:3306'
expose:
- '3305'
volumes:
- mysql-bilage:/var/lib/mysql
redis:
container_name: redis-billage
image: redis
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD=compose-redis
spring:
container_name: spring-boot-billage
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
- redis
environment:
spring.datasource.url: jdbc:mysql://db:3306/billage
spring.datasource.username: COMPOSE_USER
spring.datasource.password: COMPOSE_PASSWORD
volumes:
- spring-bilage:/spring/data
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
mysql-bilage:
driver: local
spring-bilage: