Skip to content

Commit

Permalink
initial setting: connecting db
Browse files Browse the repository at this point in the history
  • Loading branch information
singsangssong committed Jan 9, 2025
1 parent 5332c8b commit 4b3e344
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# 8000 -> 80 포트로 수행하도록 지정
# - name: Docker run
# run: |
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
restart: always
environment:
MYSQL_DATABASE: ruty_db
MYSQL_ROOT_PASSWORD: 1234
MYSQL_USER: ruty
MYSQL_PASSWORD: bunnies
# volumes:
Expand All @@ -23,8 +24,11 @@ services:
platform: linux/amd64
container_name: ruty-server
restart: always
build:
context: .
dockerfile: ./Dockerfile
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://ruty-mysql:3306/ruty-db
SPRING_DATASOURCE_URL: jdbc:mysql://ruty-mysql:3306/ruty_db
SPRING_DATASOURCE_USERNAME: ruty
SPRING_DATASOURCE_PASSWORD: bunnies
ports:
Expand Down

0 comments on commit 4b3e344

Please sign in to comment.