-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
67 lines (64 loc) · 1.64 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
react-app:
build:
context: ./react-app
# dockerfile : Dockerfile # 배포용 도커 파일
dockerfile : dockerfile.dev # 개발용 도커 파일
image: 'react-image:latest'
container_name: 'react-container'
restart: always
stdin_open: true
tty: true
volumes:
- ./react-app/src:/react-app/src
depends_on:
- springboot-app
ports:
- ${REACT_HOST_PORT}:${REACT_SERVER_PORT}
env_file:
- ./react-app/.env
networks:
- inha
springboot-app:
build:
context: ./springboot-app
# dockerfile : Dockerfile # 배포용 도커 파일
dockerfile : ./dockerfile.dev # 개발용 도커 파일
image: 'springboot-image:latest'
container_name: 'springboot-container'
#restart: always
stdin_open: true
tty: true
volumes:
- ./springboot-app:/springboot-app
- ./springboot-app/.env:/.env
ports:
- ${SPRINGBOOT_HOST_PORT}:${SPRINGBOOT_SERVER_PORT}
env_file:
- ./springboot-app/.env
networks:
- inha
chatbot-app:
build:
context: ./chatbot-app
dockerfile: ./dockerfile
image: 'chatbot-service-image'
container_name: 'chatbot-service-container'
restart: always
stdin_open: true
tty: true
volumes:
- ./chatbot-app:/chatbot-app
ports:
- ${FASTAPI_HOST_PORT}:${FASTAPI_SERVER_PORT}
env_file:
- .env
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
networks:
- inha
networks:
inha:
name: inha