-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
77 lines (69 loc) · 2.08 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
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
# To build the entire stack run 'make run'
version: '3'
services:
# This container is errbot
chatbot:
container_name: chatbot
restart: always
build: ./src/errbot
env_file:
- ./config.env
- ./creds.env
depends_on:
- localstack
environment:
- LOCAL_TESTING=${LOCAL_TESTING}
# uncomment the volume lines below to enable the 'observability' stack
# volumes:
# - log-volume:/app
# This container is used to create a local 'mock' instance of AWS for testing
localstack:
container_name: localstack
build:
context: ./script/localstack
dockerfile: ./Dockerfile
ports:
- "127.0.0.1:4566:4566"
- "127.0.0.1:4571:4571"
environment:
- LOCALSTACK_HOST=http://localstack:4566
- SERVICES=${SERVICES- }
- DEBUG=${DEBUG- }
- DATA_DIR=${DATA_DIR- }
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
- HOST_TMP_FOLDER=${TMPDIR:-/tmp/}localstack
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/tmp}/localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
# Containers for observability
# uncomment the volume lines below to enable the 'observability' stack
# loki:
# container_name: loki
# image: grafana/loki:2.4.2
# ports:
# - "3100:3100"
# command: -config.file=/etc/loki/local-config.yaml
# promtail:
# container_name: promtail
# image: grafana/promtail:2.4.2
# volumes:
# - log-volume:/app:ro
# - ./script/observability/promtail/config.yml:/etc/promtail/config.yml
# command: -config.file=/etc/promtail/config.yml
# depends_on:
# - loki
# - chatbot
# grafana:
# container_name: grafana
# image: grafana/grafana:latest
# volumes:
# - ./script/observability/grafana/grafana.ini:/etc/grafana/grafana.ini
# - ./script/observability/grafana/loki.yaml:/etc/grafana/provisioning/datasources/default.yaml
# ports:
# - "3000:3000"
# depends_on:
# - loki
# - promtail
# volumes:
# log-volume: