-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhttp-docker-compose.yml
More file actions
48 lines (42 loc) · 1.29 KB
/
http-docker-compose.yml
File metadata and controls
48 lines (42 loc) · 1.29 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
# 도커 컴포즈 버전 작성
version: "3"
# 도커 컴포즈로 수행할 항목을 작성하다. service, networks, volumes: 등 존재
services: #컨테이너를 정의하는 것
special_be:
image: minyumanyu/special_be:latest
container_name: special_be
environment:
- TZ=Asia/Seoul
volumes: #applicaion.properties 같은 파일을 저장하는 공간
- /home/ubuntu/special_config/config/spring:/var/jenkins_home/Special/BackEnd/src/main/resources:ro
build:
context: ./BackEnd
dockerfile: Dockerfile
ports:
- "9999:9999"
special_fe:
image: minyumanyu/special_fe:latest
container_name: special_fe
build:
context: ./FrontEnd
dockerfile: Dockerfile
environment:
- TZ=Asia/Seoul
ports:
- "3000:5173" #호스트의 5173포트를 special_fe컨테이너의 5173포트와 매핑시킨다.
# database:
# container_name: special_mysql
# image: mysql:8.0.32
# restart: unless-stopped
# ports:
# - "3306:3306"
# environment:
# - MYSQL_DATABASE=convenience
# - MYSQL_USER=special
# - MYSQL_PASSWORD=specialbe-303
# - MYSQL_ROOT_PASSWORD=specialbe-303
# - TZ=Asia/Seoul
# command:
# - --character-set-server=utf8mb4
# - --collation-server=utf8mb4_unicode_ci
#