-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (92 loc) · 3.3 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
bagtothefuture-member:
image: ${DOCKER_USERNAME}/bagtothefuture-member:latest # member api 이미지
ports:
- "8080:8080"
environment:
SPRING_PROFILES_ACTIVE: dev # dev 프로파일 활성화
OAUTH_KAKAO_CLIENTID: ${OAUTH_KAKAO_CLIENTID}
OAUTH_KAKAO_REDIRECT_URL: ${OAUTH_KAKAO_REDIRECT_URL}
OAUTH_KAKAO_CLIENT_SECRET: ${OAUTH_KAKAO_CLIENT_SECRET}
OAUTH_NAVER_CLIENTID: ${OAUTH_NAVER_CLIENTID}
OAUTH_NAVER_CLIENT_SECRET: ${OAUTH_NAVER_CLIENT_SECRET}
COULD_AWS_S3_REGION: ${COULD_AWS_S3_REGION}
CLOUD_AWS_S3_ACCESSKEY: ${CLOUD_AWS_S3_ACCESSKEY}
CLOUD_AWS_S3_SECRETKEY: ${CLOUD_AWS_S3_SECRETKEY}
BUSINESS_VALIDATE_API_KEY: ${BUSINESS_VALIDATE_API_KEY}
GOOGLE_FIREBASE_SERVICE_PROJECTID: ${GOOGLE_FIREBASE_SERVICE_PROJECTID}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
depends_on:
redis:
condition: service_healthy
volumes:
- type: bind
source: /home/ec2-user/firebase-secret.json
target: /core/infra/src/main/resources/firebase-secret.json
bagtothefuture-store:
image: ${DOCKER_USERNAME}/bagtothefuture-store:latest # store api 이미지
ports:
- "8081:8081"
environment:
SPRING_PROFILES_ACTIVE: dev # dev 프로파일 활성화
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
COULD_AWS_S3_REGION: ${COULD_AWS_S3_REGION}
CLOUD_AWS_S3_ACCESSKEY: ${CLOUD_AWS_S3_ACCESSKEY}
CLOUD_AWS_S3_SECRETKEY: ${CLOUD_AWS_S3_SECRETKEY}
GOOGLE_FIREBASE_SERVICE_PROJECTID: ${GOOGLE_FIREBASE_SERVICE_PROJECTID}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
depends_on:
redis:
condition: service_healthy
volumes:
- type: bind
source: /home/ec2-user/firebase-secret.json
target: /core/infra/src/main/resources/firebase-secret.json
bagtothefuture-event:
image: ${DOCKER_USERNAME}/bagtothefuture-event:latest # event api 이미지
ports:
- "8084:8084"
environment:
SPRING_PROFILES_ACTIVE: dev # dev 프로파일 활성화
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
MAIL_USERNAME: ${MAIL_USERNAME}
MAIL_PASSWORD: ${MAIL_PASSWORD}
COULD_AWS_S3_REGION: ${COULD_AWS_S3_REGION}
CLOUD_AWS_S3_ACCESSKEY: ${CLOUD_AWS_S3_ACCESSKEY}
CLOUD_AWS_S3_SECRETKEY: ${CLOUD_AWS_S3_SECRETKEY}
GOOGLE_FIREBASE_SERVICE_PROJECTID: ${GOOGLE_FIREBASE_SERVICE_PROJECTID}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
depends_on:
redis:
condition: service_healthy
volumes:
- type: bind
source: /home/ec2-user/firebase-secret.json
target: /core/infra/src/main/resources/firebase-secret.json
swagger-ui:
image: ${DOCKER_USERNAME}/bagtothefuture-swagger:latest # swagger 이미지
ports:
- "8000:80"
redis:
image: redis:latest
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]