Skip to content

Commit 11d4a49

Browse files
committed
Adjust Deploy Playbook to Copy Prom Config. Add Stop Dev Script
1 parent 1ba675c commit 11d4a49

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
@@ -34,6 +34,12 @@
3434
owner: root
3535
group: root
3636

37+
- name: Copy Prometheus configuration files
38+
copy:
39+
src: ../../monitoring/prometheus/
40+
dest: "{{ project_dir }}/monitoring/prometheus/"
41+
42+
3743
- name: Log in to GHCR
3844
shell: |
3945
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
@@ -102,6 +102,7 @@ services:
102102

103103
prometheus:
104104
image: prom/prometheus
105+
container_name: studymate-prometheus-dev
105106
volumes:
106107
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
107108
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)