-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathdocker-compose.yml
100 lines (98 loc) · 2.71 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.9"
services:
db:
image: postgres:15
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: logflare_docker
ports:
- "5432:5432"
volumes:
- ./priv/setup.sql:/docker-entrypoint-initdb.d/setup.sql
- pg-data:/var/lib/postgresql/data
stripe-mock:
image: stripe/stripe-mock:latest
ports:
- "12111:12111"
logflare:
build:
dockerfile: ./Dockerfile
tags:
- "supabase/logflare:latest"
- "supabase/logflare:1.0.0"
ports:
- "4000:4000"
hostname: 127.0.0.1
volumes:
- type: bind
source: ${PWD}/.docker.env
target: /tmp/.secrets.env
read_only: true
- type: bind
source: ${PWD}/gcloud.json
target: /opt/app/rel/logflare/bin/gcloud.json
read_only: true
# uncomment if you want to add a startup script
# - type: bind
# source: ${PWD}/cloudbuild/startup.sh
# target: /opt/app/rel/logflare/bin/startup.sh
# read_only: true
depends_on:
- db
filebeat:
image: docker.elastic.co/beats/filebeat:8.13.3-arm64
# https://github.com/docker/swarmkit/issues/1951
# Need to override user so we can access the log files, and docker.sock
# user: root
ports:
- "8000:8000"
# networks:
# - elastic
volumes:
- ./test/filebeat.yml:/usr/share/filebeat/filebeat.yml
# - filebeat:/usr/share/filebeat/data
# - /var/log/audit/:/var/log/audit/:ro
# environment:
# - ELASTICSEARCH_HOST=${ELASTICSEARCH_HOST:-node1}
# - KIBANA_HOST=${KIBANA_HOST:-node1}
# - ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME:-elastic}
# - ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD:-changeme}
# disable strict permission checks
command: ["--strict.perms=false"]
loki:
image: grafana/loki:3.1.0
ports:
- "3100:3100"
volumes:
- ./test/loki.yml:/etc/loki/local-config.yaml
command: -config.file=/etc/loki/local-config.yaml -log.level=debug
grafana:
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
entrypoint:
- sh
- -euc
- |
mkdir -p /etc/grafana/provisioning/datasources
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: true
version: 1
editable: false
EOF
/run.sh
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
pg-data: