Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 8122a9f

Browse files
committed
Update docker compose deploy
1 parent e95232e commit 8122a9f

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.env.example

+16
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,19 @@ DOMAIN=localhost
1313

1414
GF_SECURITY_ADMIN_USER=ADMIN
1515
GF_SECURITY_ADMIN_PASSWORD=PASSWORD
16+
17+
ALLOY_CONFIG_FILE=config.alloy
18+
ALLOY_CONFIG_PATH=/etc/alloy
19+
ALLOY_CONFIG_PATH_LOCAL=./infra/alloy/config
20+
21+
AGENT_KEY_APP_RECEIVER=api_key
22+
AGENT_HOST=alloy
23+
AGENT_LOGS_PATH=/var/log
24+
AGENT_PORT=12345
25+
AGENT_PORT_APP_RECEIVER=8027
26+
AGENT_TEMP_PATH=/tmp/agent
27+
AGENT_WAL_PATH=wal
28+
29+
30+
DEMO_CLIENT_PACKAGE_NAME="app"
31+
DEMO_PACKAGE_NAME="app"

.github/workflows/sandbox_build_and_deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
5353
ssh_public_key: ${{ secrets.SSH_PUB_KEY }}
5454
stack_file_name: ${{ env.COMPOSE_FILE_NAME }}
55-
args: -p ${{ env.PROJECT }} --env-file .env up -d --remove-orphans --build frontend backend
55+
args: -p ${{ env.PROJECT }} --env-file .env up -d --remove-orphans --build

docker-compose-deploy.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,40 @@ services:
3232
ports:
3333
- "5004:5004"
3434

35+
grafana:
36+
image: grafana/grafana:latest
37+
ports:
38+
- "3000:3000"
39+
environment:
40+
- GF_AUTH_ANONYMOUS_ENABLED=true
41+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
42+
volumes:
43+
- ./infra/grafana/provisioning:/etc/grafana/provisioning
44+
- grafana-storage:/var/lib/grafana
45+
46+
loki:
47+
image: grafana/loki:latest
48+
ports:
49+
- "3100:3100"
50+
command: -config.file=/etc/loki/local-config.yaml
51+
volumes:
52+
- ./infra/loki/loki-config.yaml:/etc/loki/local-config.yaml
53+
- loki-data:/loki # Mount a volume for the WAL directory
54+
55+
grafana-alloy:
56+
env_file:
57+
- './.env.example'
58+
image: grafana/alloy:latest
59+
volumes:
60+
- ./infra/alloy/config.alloy:/etc/alloy/config.alloy
61+
entrypoint:
62+
- '/bin/alloy'
63+
- 'run'
64+
- '--server.http.listen-addr=0.0.0.0:12345'
65+
- '--config.extra-args="-config.expand-env"'
66+
- '${ALLOY_CONFIG_PATH}/${ALLOY_CONFIG_FILE}'
67+
environment:
68+
AGENT_PORT_APP_RECEIVER: 8027
69+
ALLOY_CONFIG_FILE: config.alloy
70+
ALLOY_CONFIG_PATH: /etc/alloy
71+
ALLOY_CONFIG_PATH_LOCAL: ./infra/alloy/config

0 commit comments

Comments
 (0)