Skip to content

Commit

Permalink
🐳 dev/prod compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Dec 21, 2023
1 parent d3973cf commit 85aa77b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ inputs.release_tag_name }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand All @@ -107,9 +109,15 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
if [[ -z "$tags" ]]; then
echo "No tags specified, skipping docker buildx imagetools create command"
else
docker buildx imagetools create $tags \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
fi
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
File renamed without changes.
44 changes: 44 additions & 0 deletions compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: "3"

services:
prometheus:
image: prom/prometheus:v2.30.3
ports:
- 9000:9090
volumes:
- ./prometheus:/etc/prometheus
- prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml

grafana:
image: grafana/grafana:8.2.2
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- grafana-data:/var/lib/grafana

alertmanager:
image: prom/alertmanager:v0.23.0
restart: unless-stopped
ports:
- "9093:9093"
volumes:
- "./prometheus:/config"
- alertmanager-data:/data
command: --config.file=/config/alertmanager.yml --log.level=debug

monitoring:
image: ghcr.io/astraly-labs/pragma-monitoring
env_file:
- .env
ports:
- 8080:8080

volumes:
prometheus-data:

grafana-data:

alertmanager-data:

0 comments on commit 85aa77b

Please sign in to comment.