feat: 처음 받은 사람도 docker compose up 한 번으로 띄울 수 있게 - #113
Merged
Merged
Conversation
README 의 빠른 시작이 존재하지 않는 docker-compose.yml, application-docker.yml, -Pprofile=prod 옵션, 없는 관리자 계정(admin@carecode.com)을 안내하고 있었다. 그대로 따라 하면 첫 명령부터 실패했다. - docker-compose.yml: 앱 + MariaDB 10.11 + Redis 7. .env 없이도 로컬 기본값으로 뜬다. 스키마는 Flyway 로 만들고 Hibernate 는 validate 만 한다(운영과 같은 방식) — 마이그레이션이 빠지면 로컬에서도 기동 실패로 바로 드러난다. - .env.example: 카카오·메일·공공데이터·챗봇 등 선택 연동 키. 없어도 해당 기능만 비활성. - Dockerfile: 업로드 디렉터리를 비루트 사용자 소유로 만든다(볼륨 마운트 시 쓰기 실패 방지). HEALTHCHECK start-period 30s → 180s. Docker Desktop 에서 Flyway 초기 적용 포함 기동이 3분 넘게 걸려 준비 중에 unhealthy 로 표시됐다. - .dockerignore: .env 가 이미지에 들어가지 않게. - README: 빠른 시작·가입/로그인·관리자 승격·샘플 데이터·배포(GitHub Actions)· 마이그레이션·테이블·프로젝트 구조를 실제 코드와 맞춘다. 목차 링크 수정. 로컬에서 README 순서대로 실행해 확인: 기동(healthy, Flyway V1~V18 적용 후 validate), 가입 → 로그인(리프레시 쿠키) → /users/me → SQL 로 ADMIN 승격 → /api/admin/users 200.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #112
변경
docker-compose.yml— 앱 + MariaDB 10.11 + Redis 7..env없이 로컬 기본값으로 기동. Flyway 로 스키마 생성 + Hibernate validate (운영과 동일).env.example— 선택 연동 키 (카카오·메일·공공데이터·챗봇·샘플 데이터·포트)Dockerfile— 업로드 디렉터리 소유권, HEALTHCHECK start-period 180s (Docker Desktop 기동 3분 반영).dockerignore—.env제외README.md— 빠른 시작·배포·DB·구조를 실제와 맞춤확인
README 순서대로 새 볼륨에서 실행:
docker compose up --buildGET /users/me/api/admin/usersGET /facilities기존 로컬 컨테이너(carecode-mariadb:3406, carecode-redis:6379)와 포트가 겹치지 않는다 (3307 / 6380).