Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
deploy
Commits
6a36b07f
Commit
6a36b07f
authored
Feb 29, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log server
parent
ff70496d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
docker-compose-loki-log-server.yaml
docker-compose-loki-log-server.yaml
+51
-0
No files found.
docker-compose-loki-log-server.yaml
0 → 100644
View file @
6a36b07f
version
:
"
3"
networks
:
loki
:
services
:
loki
:
image
:
grafana/loki:2.9.4
ports
:
-
"
3100:3100"
command
:
-config.file=/etc/loki/local-config.yaml
networks
:
-
loki
promtail
:
image
:
grafana/promtail:2.9.4
volumes
:
-
/var/log:/var/log
command
:
-config.file=/etc/promtail/config.yml
networks
:
-
loki
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"
networks
:
-
loki
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment