-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
55 lines (53 loc) · 1.62 KB
/
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
# SPDX-FileCopyrightText: ASSUME Developers
#
# SPDX-License-Identifier: CC-BY-4.0
version: "3.9"
services:
assume_db:
# smaller without postgis support:
# image: timescale/timescaledb:latest-pg16
image: timescale/timescaledb-ha:pg16-oss
container_name: assume_db
restart: always
environment:
- POSTGRES_USER=assume
- POSTGRES_PASSWORD=assume
- POSTGRES_DB=assume
- TS_TUNE_MAX_CONNS=500
volumes:
# needed for normal image
#- ./assume-db:/var/lib/postgresql/data
# /home/postgres/data is path for timescaledev image
- ./assume-db:/home/postgres/pgdata
ports:
- 5432:5432
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
grafana:
image: grafana/grafana-oss:latest
container_name: assume_grafana
user: "104"
depends_on:
- assume_db
ports:
- 3000:3000
environment:
GF_SECURITY_ALLOW_EMBEDDING: "true"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_INSTALL_PLUGINS: "marcusolsson-dynamictext-panel,orchestracities-map-panel"
GF_SECURITY_ADMIN_USER: assume
GF_SECURITY_ADMIN_PASSWORD: "assume"
volumes:
- ./docker_configs/grafana.ini:/etc/grafana/grafana.ini
- ./docker_configs/datasources:/etc/grafana/provisioning/datasources
- ./docker_configs/dashboards:/etc/grafana/provisioning/dashboards
- ./docker_configs/dashboard-definitions:/etc/grafana/provisioning/dashboard-definitions
restart: always
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]