diff --git a/.gitea/workflows/staging_code_pull.yml b/.gitea/workflows/staging_code_pull.yml index a9010c12..c658fd95 100644 --- a/.gitea/workflows/staging_code_pull.yml +++ b/.gitea/workflows/staging_code_pull.yml @@ -148,7 +148,7 @@ jobs: # [중요] 설정 파일 권한 문제 해결 (Ory 이미지는 root가 아닌 사용자로 실행됨) - chmod -R 777 docker/ory + chmod -R 777 docker/ory || true cp docker/staging_pull_compose.template.yaml staging_pull_compose.yaml diff --git a/.gitignore b/.gitignore index 31c87998..31b94f32 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ # Docker Services Data (Volumes) postgres_data/ clickhouse_data/ +docker/ory/oathkeeper/logs/ # Backend (Go) backend/main diff --git a/compose.ory.yaml b/compose.ory.yaml index 5e9d5f9d..3fa4d71c 100644 --- a/compose.ory.yaml +++ b/compose.ory.yaml @@ -146,7 +146,7 @@ services: - OATHKEEPER_INTROSPECT_CLIENT_SECRET=${OATHKEEPER_INTROSPECT_CLIENT_SECRET:-oathkeeper-secret} volumes: - ./docker/ory/oathkeeper:/etc/config/oathkeeper - - ./docker/ory/oathkeeper/logs:/var/log/oathkeeper + - oathkeeper_logs:/var/log/oathkeeper entrypoint: ["/etc/config/oathkeeper/entrypoint.sh"] networks: - ory-net @@ -169,7 +169,7 @@ services: container_name: ory_vector volumes: - ./docker/ory/vector:/etc/vector - - ./docker/ory/oathkeeper/logs:/var/log/oathkeeper + - oathkeeper_logs:/var/log/oathkeeper command: ["-c", "/etc/vector/vector.toml"] depends_on: - oathkeeper @@ -239,6 +239,7 @@ services: volumes: ory_postgres_data: ory_clickhouse_data: + oathkeeper_logs: networks: ory-net: diff --git a/docker/staging_pull_compose.template.yaml b/docker/staging_pull_compose.template.yaml index 911a129b..9bd90887 100644 --- a/docker/staging_pull_compose.template.yaml +++ b/docker/staging_pull_compose.template.yaml @@ -167,6 +167,7 @@ services: command: serve proxy --config /etc/config/oathkeeper/oathkeeper.yml volumes: - ./docker/ory/oathkeeper:/etc/config/oathkeeper + - oathkeeper_logs:/var/log/oathkeeper networks: - ory-net - baron_net @@ -302,6 +303,7 @@ volumes: clickhouse_data: redis_data: ory_postgres_data: + oathkeeper_logs: networks: baron_net: