Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand All @@ -36,7 +42,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
platforms: linux/arm64
push: true
tags: |
${{ env.DOCKER_IMAGE }}:${{ github.event.workflow_run.head_branch }}
Expand Down
33 changes: 31 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
ports:
- "8080:8080"
environment:
- JAVA_OPTS=-Xms2g -Xmx2g
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE}
- DB_URL=${DB_URL}
- DB_USERNAME=${DB_USERNAME}
Expand All @@ -18,11 +19,39 @@ services:
networks:
- app-network
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_started
elasticsearch:
condition: service_healthy

mysql:
image: mysql:8.0
container_name: tech-fork-mysql
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=techblog
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- TZ=Asia/Seoul
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --innodb-buffer-pool-size=2G
volumes:
- mysql-data:/var/lib/mysql
networks:
- app-network
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5

redis:
image: redis:7-alpine
container_name: tech-fork-redis
Expand All @@ -32,7 +61,7 @@ services:
command:
redis-server
--requirepass ${REDIS_PASSWORD}
--maxmemory 256mb
--maxmemory 1gb
--maxmemory-policy allkeys-lru
networks:
- app-network
Expand All @@ -49,7 +78,7 @@ services:
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- "ES_JAVA_OPTS=-Xms8g -Xmx8g"
networks:
- app-network
volumes:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions infra/oracle/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading