Skip to content

Commit

Permalink
chore: 레디스 관련 설정 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
junseoplee committed Sep 11, 2024
1 parent 554818a commit c79367c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/someup_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
- name: Add GitHub IP to AWS
run: |
aws ec2 authorize-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32
# docker-compose.yml 파일 EC2로 복사
- name: Copy docker-compose.yml to EC2
uses: appleboy/scp-action@master
Expand Down
17 changes: 13 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
version: '3'

services:
springboot:
container_name: someup-dev # ec2내에서 동작하는 컨테이너명
image: junseoplee/someup:latest
container_name: someup # ec2내에서 동작하는 컨테이너명
image: someupsite/someup:latest
ports:
- 8080:8080
environment:
SPRING_PROFILES_ACTIVE : dev-env # 사용할 profile
networks:
- my_network

redis:
image: redis
container_name: redis-cache
environment:
REDIS_PASSWORD: password
command: ["redis-server", "--requirepass", "password", "--port", "6379"]
ports:
- 6379:6379
networks:
- my_network

networks:
my_network:
driver: bridge

0 comments on commit c79367c

Please sign in to comment.