Skip to content

Commit

Permalink
✨ set docker compose for dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Aug 1, 2024
1 parent 2862edd commit 8324e55
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 36 additions & 1 deletion backend/src/main/resources/docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,41 @@ services:
environment:
JASYPT_PASSWORD: ${JASYPT_PASSWORD}
ports:
- 7848:8080
- 8080:8080
links:
- db
- loki

loki:
image: grafana/loki
command: -config.file=/etc/loki/local-config.yaml

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
ports:
- 3000:3000
links:
- loki
2 changes: 2 additions & 0 deletions backend/src/main/resources/docker-compose-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ services:
image: grafana/grafana
ports:
- 3000:3000
links:
- loki

0 comments on commit 8324e55

Please sign in to comment.