Skip to content

Commit

Permalink
[Deploy] docker compose 환경 변수 추가 (#48)
Browse files Browse the repository at this point in the history
* fix: 게시물 api url 대응 (#45)

* fix: swagger config (#44)

* fix: 게시물 상세 조회 로그인 체크 수정 (#45)

* deploy: credential env 추가
  • Loading branch information
yongbin97 authored Oct 4, 2024
1 parent 69ad963 commit bac9432
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ services:
ports:
- 8080:8080
environment:
SPRING_PROFILES_ACTIVE : dev-env # 사용할 profile
- SPRING_PROFILES_ACTIVE=dev-env # 사용할 profile
- GOOGLE_APPLICATION_CREDENTIALS=/path/in/container/application_default_credentials.json
volumes:
- ~/.config/gcloud/application_default_credentials.json:/path/in/container/application_default_credentials.json
networks:
- my_network


redis:
image: redis
container_name: redis-cache
command: ["redis-server", "--port", "6379"] # 비밀번호 설정 제거
command: [ "redis-server", "--port", "6379" ] # 비밀번호 설정 제거
ports:
- 6379:6379
networks:
Expand Down

0 comments on commit bac9432

Please sign in to comment.