forked from DMS-SMS/v1-api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (49 loc) · 1.58 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
version: '3.5'
services:
api-gateway:
image: jinhong0719/dms-sms-api-gateway:${VERSION}.RELEASE
container_name: api-gateway
networks:
- dms-sms-local
ports:
- target: 80
published: 80
protocol: tcp
mode: host
environment:
- CONSUL_ADDRESS=${CONSUL_ADDRESS}
- JAEGER_ADDRESS=${JAEGER_ADDRESS}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- NAVER_CLIENT_ID=${NAVER_CLIENT_ID}
- NAVER_CLIENT_SECRET=${NAVER_CLIENT_SECRET}
- SECURITY_BASE_PLAIN=${SECURITY_BASE_PLAIN}
- SECURITY_PASS_PHRASE=${SECURITY_PASS_PHRASE}
- SMS_AWS_ID=${SMS_AWS_ID} # add in v.1.0.2
- SMS_AWS_KEY=${SMS_AWS_KEY} # add in v.1.0.2
- SMS_AWS_REGION=${SMS_AWS_REGION} # add in v.1.0.2
- SMS_AWS_BUCKET=${SMS_AWS_BUCKET}
- CONSUL_INDEX_HEADER=${CONSUL_INDEX_HEADER}
- SNS_TOPIC_ARN=${SNS_TOPIC_ARN} # add in v.1.0.2
- CHANGE_CONSUL_SQS_GATEWAY=${CHANGE_CONSUL_SQS_GATEWAY} # add in v.1.0.2
- REDIS_DELETE_TOPIC=${REDIS_DELETE_TOPIC} # add in v.1.0.3
- REDIS_SET_TOPIC=${REDIS_SET_TOPIC} # add in v.1.0.4
- VERSION=${VERSION} # add in v.1.0.5
volumes:
- log-data:/usr/share/filebeat/log/dms-sms
- ./entity:/usr/share/gateway/entity
- gateway-profile:/usr/share/gateway/profile
deploy:
mode: replicated
replicas: 1
labels: [APP=api-gateway]
networks:
dms-sms-local:
name: dms-sms-local
driver: overlay
volumes:
log-data:
name: log-data
driver: local
gateway-profile:
name: gateway-profile
driver: local