generated from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.prod.yaml
76 lines (73 loc) · 1.8 KB
/
docker-compose.prod.yaml
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
version: "3.8"
x-aws-loadbalancer: "arn:aws:elasticloadbalancing:ap-northeast-2:573620237252:loadbalancer/net/inobus-load-blancer/3325e195cc30426f"
services:
api:
extends:
file: common.yaml
service: api
environment:
- WAIT_HOSTS
- DB_NAME
- DB_PASSWORD
- DB_URL
- DB_USERNAME
- APP_PORT
- APP_TEST
- APP_LOG_LEVEL
depends_on:
- rabbitmq
ports:
- 80:80
rabbitmq:
extends:
file: common.yaml
service: rabbitmq
environment:
- RABBITMQ_ADMIN_USER
- RABBITMQ_ADMIN_PASS
- RABBITMQ_DATA_USER
- RABBITMQ_DATA_PASS
consumer:
extends:
file: common.yaml
service: consumer
environment:
- WAIT_HOSTS
- DB_NAME
- DB_PASSWORD
- DB_URL
- DB_USERNAME
- APP_TEST
- APP_LOG_LEVEL
- AMQP_USERNAME
- AMQP_PASSWORD
- AMQP_HOST
- AMQP_PORT
- MQTT_USERNAME
- MQTT_PASSWORD
- MQTT_HOST
- MQTT_PORT
depends_on:
- rabbitmq
# Http -> Https redirection
x-aws-cloudformation:
Resources:
ApiTCP443Listener:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
Port: 443
Protocol: TLS
Certificates:
- CertificateArn: arn:aws:acm:ap-northeast-2:573620237252:certificate/b874724b-0f7e-4b7f-881d-6c461d57beaa
DefaultActions:
- ForwardConfig:
TargetGroups:
- TargetGroupArn:
Ref: ApiTCP80TargetGroup
Type: forward
LoadBalancerArn: arn:aws:elasticloadbalancing:ap-northeast-2:573620237252:loadbalancer/net/inobus-load-blancer/3325e195cc30426f
ApiTCP80TargetGroup:
Properties:
HealthCheckProtocol: HTTP
HealthCheckPort: 80
HealthCheckPath: /ping