boring.tools-poc/docker-compose.yaml
Lars Hampe 4046c31fbd
All checks were successful
Build and Push Docker Image / tests (push) Successful in 54s
Build and Push Docker Image / build (push) Successful in 4m50s
ci: update docker-compose.yaml
2024-11-12 16:17:16 +01:00

57 lines
1.3 KiB
YAML

services:
postgres:
image: postgres:17-alpine
container_name: boring_postgres
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
cache:
container_name: boring_redis
image: redis:7.4.1-alpine
ports:
- '6379:6379'
# command: redis-server --save 20 1 --loglevel warning --requirepass development
loki:
image: grafana/loki:latest
ports:
- "9100:3100"
command: -config.file=/etc/loki/local-config.yaml
promtail:
image: grafana/promtail:latest
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml
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:
- "9000:3000"