From ef340c636a1ec5d60f5e24bfa541d8667ba70547 Mon Sep 17 00:00:00 2001 From: Eunsu Kang <56429615+ssupecial@users.noreply.github.com> Date: Thu, 30 May 2024 00:53:27 +0900 Subject: [PATCH] fix(infra): delete start-up profile and add caddy profile (#54) * fix(infra): start and restart all containers except for start-up containers * fix(infra): check only caddy container is running * fix(infra): delete start-up profile and add caddy profile --- .github/workflows/update-stage.yml | 16 ++++++++-------- docker-compose.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/update-stage.yml b/.github/workflows/update-stage.yml index 7a46201..a5dfa46 100644 --- a/.github/workflows/update-stage.yml +++ b/.github/workflows/update-stage.yml @@ -27,25 +27,25 @@ jobs: EOF - - name: Check if initial containers are running - id: check-start-up-container + - name: Check if caddy container is running + id: check-caddy-container run: | { echo 'stdout<> "$GITHUB_OUTPUT" - - name: when initial containers are not running, start start-up containers - if: steps.check-start-up-container.outputs.stdout == '' + - name: when caddy container is not running, start caddy container + if: steps.check-caddy-container.outputs.stdout == '' run: > - docker compose --profile start-up up -d + docker compose --profile caddy up -d - - name: Start all containers except for start-up + - name: Start all containers except for caddy run: | docker compose --profile log --profile trace --profile metric up -d - - name: Restart all containers except for start-up + - name: Restart all containers except for caddy run: | docker compose --profile log --profile trace --profile metric restart diff --git a/docker-compose.yml b/docker-compose.yml index 8443152..e2bc4c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.8" services: caddy: - profiles: ["start-up"] + profiles: ["caddy"] image: caddy:2.7.6-alpine container_name: caddy restart: always @@ -12,7 +12,7 @@ services: network_mode: host minio: - profiles: ["start-up"] + profiles: ["log", "trace"] container_name: minio image: minio/minio:latest volumes: @@ -27,7 +27,7 @@ services: shm_size: "1gb" createbuckets: - profiles: ["start-up", "log", "trace"] + profiles: ["log", "trace"] image: minio/mc volumes: - minio_data_volume:/data @@ -152,7 +152,7 @@ services: restart: always grafana: - profiles: ["start-up"] + profiles: ["log", "trace", "metric"] image: grafana/grafana:latest env_file: - .env