Skip to content

Commit ceda0d0

Browse files
committed
도커 추가하여 배포
1 parent b64fc69 commit ceda0d0

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: '3.8'
2+
3+
services:
4+
mysql:
5+
image: mysql:8.0
6+
environment:
7+
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
8+
MYSQL_DATABASE: cs25
9+
ports:
10+
- "3306:3306"
11+
volumes:
12+
- mysql-data:/var/lib/mysql
13+
14+
redis:
15+
image: redis:7.2
16+
ports:
17+
- "6379:6379"
18+
19+
spring-app:
20+
image: baekjonghyun/cs25-app:latest
21+
ports:
22+
- "8080:8080"
23+
depends_on:
24+
- mysql
25+
- redis
26+
env_file:
27+
- .env
28+
29+
volumes:
30+
mysql-data:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ out/
3535

3636
### VS Code ###
3737
.vscode/
38-
.github/workflows/docker-compose.yml
3938

4039
### yml ###
4140
.github/workflows/.env

0 commit comments

Comments
 (0)