forked from iwpnd/pyle38
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
25 lines (22 loc) · 1.31 KB
/
docker-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
version: "3"
services:
tile38-leader:
image: tile38/tile38:1.32.2
container_name: tile38-leader
command: >
/bin/sh -c 'mkdir -p tmp/data && \
echo "{\"logconfig\":{\"level\":\"debug\",\"encoding\":\"json\",\"outputPaths\":[\"stdout\"],\"errorOutputPaths\":[\"stderr\"],\"encoderConfig\": {\"messageKey\":\"message\",\"levelKey\":\"level\",\"levelEncoder\":\"lowercase\", \"timeKey\":\"timestamp\",\"timeEncoder\":\"ISO8601\"}}}"> tmp/data/config
tile38-server -d tmp/data -vv -p 9851 -l json'
ports:
- 9851:9851
# if metrics-addr is set
# - 4321:4321
tile38-follower:
image: tile38/tile38:1.32.2
container_name: tile38-follower
command: >
/bin/sh -c 'mkdir -p tmp/data && \
echo "{\"follow_host\":\"tile38-leader\",\"follow_port\":9851,\"logconfig\":{\"level\":\"debug\",\"encoding\":\"json\",\"outputPaths\":[\"stdout\"],\"errorOutputPaths\":[\"stderr\"],\"encoderConfig\":{\"messageKey\":\"message\",\"levelKey\":\"level\",\"levelEncoder\":\"lowercase\",\"timeKey\":\"timestamp\",\"timeEncoder\":\"ISO8601\"}}}" > tmp/data/config
tile38-server -d tmp/data -vv -p 9852 -l json'
ports:
- 9852:9852