-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (58 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
60 lines (58 loc) · 2.27 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
services:
redis:
image: redis:7-alpine
container_name: anklet-redis
ports:
- "6379:6379"
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis_data:/data
anklet:
build:
context: ./
dockerfile: Dockerfile
# image: veertu/anklet:latest
container_name: anklet
depends_on:
- redis
volumes:
- ./config:/root/.config/anklet/
- ./anklet-private-key.pem:/private-key.pem
ports:
- "8081:8081"
environment:
# - LOG_LEVEL=dev
- ANKLET_CONFIG_FILE_NAME=receiver-config.yml
##################################################################################
# ANKLET_GLOBAL_PRIVATE_KEY allows you to use the same private key for all runners
# instead of defining a different one in the config.yml file for each runner.
# You can also set it to be the PEM contents, vs pointing to a file.
- ANKLET_GLOBAL_PRIVATE_KEY=/private-key.pem
# - |-
# ANKLET_GLOBAL_PRIVATE_KEY=-----BEGIN RSA PRIVATE KEY-----
# MIIEpAIBAAKCAQEAyqZDXOEzV5gRocWAhH73chGjn4HBh1UCG2Du4v9JmcjfyYT3
# . . .
# -----END RSA PRIVATE KEY-----
################################################################
# AGGREGATOR
# - ANKLET_METRICS_AGGREGATOR=true
# - ANKLET_METRICS_PORT=8081
# - ANKLET_METRICS_URLS=http://host.docker.internal:8080/metrics # comma separation for multiple urls
# - ANKLET_METRICS_SLEEP_INTERVAL=10
# - ANKLET_METRICS_DATABASE_ENABLED=true
# - ANKLET_METRICS_DATABASE_URL=redis
# - ANKLET_METRICS_DATABASE_PORT=6379
# - ANKLET_METRICS_DATABASE_USER=
# - ANKLET_METRICS_DATABASE_PASSWORD=
# - ANKLET_METRICS_DATABASE_DATABASE=0
##################################################################################
# GLOBAL DATABASE ENVs: if set, they will be used instead of the definitions in the config .yml file
- ANKLET_GLOBAL_DATABASE_URL=redis
- ANKLET_GLOBAL_DATABASE_PORT=6379
- ANKLET_GLOBAL_DATABASE_USER=
- ANKLET_GLOBAL_DATABASE_PASSWORD=
- ANKLET_GLOBAL_DATABASE_DATABASE=0
# ANKLET_GLOBAL_RECEIVER_SECRET allows you to set a global secret for all receivers
# - ANKLET_GLOBAL_RECEIVER_SECRET=12345
volumes:
redis_data: