Skip to content

Commit b41bba9

Browse files
committed
Adjust Deploy Playbook to Copy Prom Config. Add Stop Dev Script
1 parent 64ca20a commit b41bba9

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,11 @@ Start with both flags:
4848
```bash
4949
./start-dev -r -d
5050
```
51+
52+
### Stop the Dev Environment
53+
54+
Use the helper script to stop your local environment:
55+
56+
```bash
57+
./stop-dev
58+
```

deploy/ansible/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
owner: root
3232
group: root
3333

34+
- name: Copy Prometheus configuration files
35+
copy:
36+
src: ../../monitoring/prometheus/
37+
dest: "{{ project_dir }}/monitoring/prometheus/"
38+
39+
3440
- name: Log in to GHCR
3541
shell: |
3642
echo "{{ lookup('env','GITHUB_TOKEN') }}" | docker login ghcr.io -u "{{ lookup('env','GITHUB_ACTOR') }}" --password-stdin

docker-compose.dev-no-traefik.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ services:
101101

102102
prometheus:
103103
image: prom/prometheus
104+
container_name: studymate-prometheus-dev
104105
volumes:
105106
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
106107
ports:

stop-dev

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Run docker compose with optional flags
4+
docker compose -f docker-compose.dev-no-traefik.yml down

0 commit comments

Comments
 (0)