-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdataengine-stack.yml
More file actions
149 lines (142 loc) · 3.02 KB
/
Copy pathdataengine-stack.yml
File metadata and controls
149 lines (142 loc) · 3.02 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
version: "3.5"
services:
app:
image: apmaros/budgetdesk:latest
secrets:
- monzo_client_secret
- monzo_acc_id
- monzo_client_id
- monzo_redirect_url
- influxdb_org
- influxdb_bucket
- server_secret_key
- influxdb_token_v3
- influxdb_url
- auth0_client_id
- auth0_client_secret
- auth0_api_base_url
- auth0_callback_url
- server_name
- postgres_user
- postgres_password
- postgres_db
- postgres_host
- new_relic_license_key
- new_relic_app_id
- mapboxgl_access_token
ports:
- "4000:4000"
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
configs:
- source: newrelic_config
target: /usr/src/app/newrelic.ini
# grafana:
# image: grafana/grafana:8.3.3
# depends_on:
# - influxdb
# ports:
# - "3000:3000"
# volumes:
# - grafana:/var/lib/grafana
# environment:
# GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource"
#
# influxdb:
# image: influxdb:2.0
# volumes:
# - influxdb:/var/lib/influxdb
# - influxdb2:/var/lib/influxdb2
# configs:
# - source: influxdb_config
# target: /etc/influxdb2/config.yml
# uid: '1000'
# gid: '1000'
# environment:
# DOCKER_INFLUXDB_INIT_ORG: org
# DOCKER_INFLUXDB_INIT_BUCKET: bucket
# ports:
# - "8086:8086"
redis:
image: redis:alpine3.15
volumes:
- redis:/data
postgres:
image: postgres:14.1-alpine
secrets:
- postgres_user
- postgres_password
- postgres_db
ports:
- '5438:5432'
restart: always
environment:
POSTGRES_USER_FILE: '/run/secrets/postgres_user'
POSTGRES_PASSWORD_FILE: '/run/secrets/postgres_password'
POSTGRES_DB_FILE: '/run/secrets/postgres_db'
volumes:
- postgres:/var/lib/postgresql/data
configs:
influxdb_config:
external: true
name: influxdb_config
newrelic_config:
external: true
name: newrelic_config
volumes:
logvolume01: {}
influxdb: {}
influxdb2: {}
grafana: {}
redis: {}
postgres: { }
secrets:
monzo_client_secret:
external: true
monzo_acc_id:
external: true
monzo_client_id:
external: true
monzo_redirect_url:
external: true
influxdb_org:
external: true
influxdb_bucket:
external: true
server_secret_key:
external: true
influxdb_token_v3:
external: true
influxdb_url:
external: true
auth0_client_id:
external: true
auth0_client_secret:
external: true
auth0_api_base_url:
external: true
auth0_callback_url:
external: true
server_name:
external: true
# postgres
postgres_user:
external: true
postgres_password:
external: true
postgres_db:
external: true
postgres_host:
external: true
# newrelic
new_relic_license_key:
external: true
new_relic_app_id:
external: true
mapboxgl_access_token:
external: true