-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
136 lines (122 loc) · 3.06 KB
/
deploy.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: '3.7'
secrets:
ca_chain:
file: configs/ca/chain.crt
mongo_crt_key:
file: configs/mongodb/mongodb.crt_key
rabbitmq_key:
file: configs/rabbitmq/rabbitmq.key
rabbitmq_crt:
file: configs/rabbitmq/rabbitmq.crt
volumes:
mongo:
name: "mongo"
services:
mongodb:
image: mongo
deploy:
restart_policy:
delay: 1s
condition: any
deploy:
replicas: 1
ports:
- 27017:27017
secrets:
- source: mongo_crt_key
mode: 420
env_file: configs/mongodb/var.env
volumes:
- type: volume
source: mongo
target: /data/db
command:
- mongod
- "--bind_ip_all"
- "--tlsMode"
- requireTLS
- "--tlsCertificateKeyFile"
- /run/secrets/mongo_crt_key
rabbitmq:
image: rabbitmq:3-management
deploy:
restart_policy:
delay: 1s
condition: any
mode: replicated
replicas: 1
secrets:
- source: rabbitmq_key
mode: 420
- source: rabbitmq_crt
mode: 420
- source: ca_chain
mode: 420
ports:
- 15671:15671
- 5671:5671
env_file: configs/rabbitmq/var.env
environment:
RABBITMQ_USE_LONGNAME: 1
RABBITMQ_MANAGEMENT_SSL_CACERTFILE: /run/secrets/ca_chain
RABBITMQ_MANAGEMENT_SSL_CERTFILE: /run/secrets/rabbitmq_crt
RABBITMQ_MANAGEMENT_SSL_DEPTH: 1
RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT: 0
RABBITMQ_MANAGEMENT_SSL_KEYFILE: /run/secrets/rabbitmq_key
RABBITMQ_MANAGEMENT_SSL_VERIFY: verify_peer
RABBITMQ_SSL_CACERTFILE: /run/secrets/ca_chain
RABBITMQ_SSL_CERTFILE: /run/secrets/rabbitmq_crt
RABBITMQ_SSL_DEPTH: 1
RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT: 0
RABBITMQ_SSL_KEYFILE: /run/secrets/rabbitmq_key
RABBITMQ_SSL_VERIFY: verify_peer
daily_refresh_job:
image: gcr.io/production-280612/data/daily_refresh_job:v0.0.4
deploy:
restart_policy:
delay: 1s
condition: any
deploy:
replicas: 1
secrets:
- source: ca_chain
mode: 420
env_file: configs/daily_refresh_job/var.env
environment:
DEBUG: "false"
ENVIRONMENT: PROD
CA_CHAIN: /run/secrets/ca_chain
MONGO_HOST: mongodb
MONGO_PORT: 27017
MONGO_DATABASE: bezunca
QUEUE_HOST: rabbitmq
QUEUE_PORT: 5671
QUEUE_SELF_SIGNED: 1
INITIAL_B3_YEAR: 2015
CRON_ENABLE: "true"
CRON_SCHEDULE_PATTERN: "0 1 * * *"
bezuncapi:
image: gcr.io/production-280612/data/bezuncapi:v0.0.6
deploy:
restart_policy:
delay: 1s
condition: any
deploy:
replicas: 1
ports:
- 80:8080
secrets:
- source: ca_chain
mode: 420
env_file: configs/bezuncapi/var.env
environment:
DEBUG: "true"
ADDRESS: 0.0.0.0
PORT: 8080
CA_CHAIN: /run/secrets/ca_chain
MONGO_HOST: mongodb
MONGO_PORT: 27017
MONGO_USER: root
WEB_URL: "https://bezunca.com.br/"
DYNAMIC_LINK: "https://bezunca.page.link/"
FLUTTER_ANDROID_APP_ID: "com.bezunca.app"