Skip to content

Commit

Permalink
feat: ci/cd 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
songyi00 committed Jul 22, 2024
1 parent 4e24f25 commit e7a85c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- feat/#6-ci-cd
- develop

jobs:
build-and-push:
Expand Down
31 changes: 16 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
version: '3'

services:
db:
container_name: db
image: mysql:8.0
platform: linux/amd64
volumes:
- ./db/data:/var/lib/mysql
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}

api-server:
container_name: api-server
depends_on:
- db
- redis
image: ${NCP_CONTAINER_REGISTRY_API}/goalpanzi-api
ports:
- "8080:8080"
Expand All @@ -35,6 +21,21 @@ services:
volumes:
- ./logs:/logs

db:
container_name: db
image: mysql:8.0
platform: linux/amd64
volumes:
- ./db/data:/var/lib/mysql
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}

redis:
container_name: redis
image: redis:latest
Expand Down

0 comments on commit e7a85c7

Please sign in to comment.