Skip to content

Commit

Permalink
Merge pull request #7 from Central-MakeUs/main
Browse files Browse the repository at this point in the history
[fix] 배포 방식 변경 및 redis 환경 다시 설정
  • Loading branch information
AlmondBreez3 authored Jan 7, 2024
2 parents db53141 + 5b1834c commit 52ae874
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ name: Java CI with Gradle
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

permissions:
contents: read
Expand Down Expand Up @@ -54,8 +52,8 @@ jobs:
sudo touch .env
echo "${{ secrets.ENV }}" | sudo tee .env > /dev/null
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_DEV_REPO }}:latest
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_DEV_REPO }}:latest
docker-compose -f ~/Youngduck-Server/docker-compose.dev.yml --env-file ~/Youngduck-Server/.env up --build -d
docker image prune -a -f
16 changes: 9 additions & 7 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
version: '3.7'

services:
redis:
image: redis
container_name: redis
ports:
- "6379:6379"
restart: always

server:
image: bee1162/popcornmate-dev:latest
container_name: server
hostname: server
depends_on:
- redis
env_file:
- .env
environment:
- TZ=Asia/Seoul
expose:
- 8080

redis:
image: redis
container_name: redis
hostname: localhost
ports:
- "6379:6379"

nginx:
depends_on:
- server
Expand Down

0 comments on commit 52ae874

Please sign in to comment.