-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (58 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
66 lines (58 loc) · 1.32 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
springboot-1:
container_name: springboot-1
image: ${DOCKER_USER}/${DOCKER_REPO}:taxi-app # Docker Hub에서 가져올 이미지
ports:
- "8080:8080"
environment:
TZ: "Asia/Seoul"
depends_on:
# - mariadb
- redis
# springboot-2:
# container_name: springboot-2
# image: ${DOCKER_USER}/${DOCKER_REPO}:taxi-app # Docker Hub에서 가져올 이미지
# ports:
# - "8081:8080"
# environment:
# TZ: "Asia/Seoul"
# depends_on:
# # - mariadb
# - redis
# mariadb:
# image: mariadb:11
# container_name: mariadb
# environment:
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
# MYSQL_DATABASE: ${MYSQL_DATABASE}
# MYSQL_USER: ${MYSQL_USER}
# MYSQL_PASSWORD: ${MYSQL_PASSWORD}
# ports:
# - "3306:3306"
# volumes:
# - mariadb_data:/var/lib/mysql
redis:
image: redis:7
container_name: redis
ports:
- "6379:6379"
environment:
TZ: "Asia/Seoul"
volumes:
- redis_data:/data
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
environment:
TZ: "Asia/Seoul"
depends_on:
- springboot-1
# - springboot-2
volumes:
# mariadb_data:
redis_data: