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
58 changes: 58 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: koin-local

services:
mysql:
image: mysql:8.0.29
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: koin
MYSQL_USER: koin
MYSQL_PASSWORD: koin
ports:
- "13306:3306"
volumes:
- koin-local-mysql:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$${MYSQL_ROOT_PASSWORD} --silent"]
interval: 5s
timeout: 3s
retries: 30

redis:
image: redis:7.0.9
command: ["redis-server", "--requirepass", "koin"]
ports:
- "16379:6379"
volumes:
- koin-local-redis:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli -a koin ping | grep PONG"]
interval: 5s
timeout: 3s
retries: 30

mongo:
image: mongo:8.2.3
environment:
MONGO_INITDB_ROOT_USERNAME: koin
MONGO_INITDB_ROOT_PASSWORD: koin
MONGO_INITDB_DATABASE: koin
ports:
- "27018:27017"
volumes:
- koin-local-mongo:/data/db
- koin-local-mongo-config:/data/configdb
healthcheck:
test: ["CMD-SHELL", "mongosh --quiet -u koin -p koin --authenticationDatabase admin --eval 'db.adminCommand({ ping: 1 }).ok' | grep 1"]
interval: 5s
timeout: 3s
retries: 30

volumes:
koin-local-mysql:
koin-local-redis:
koin-local-mongo:
koin-local-mongo-config:
82 changes: 82 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
jwt:
secret-key: local-jwt-secret-key-example-32chars!!
access-token:
expiration-time: 6000000

spring:
datasource:
url: jdbc:mysql://127.0.0.1:13306/koin?characterEncoding=utf8&useUnicode=true&mysqlEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: koin
password: koin

data:
redis:
host: 127.0.0.1
port: 16379
password: koin
mongodb:
uri: mongodb://koin:koin@127.0.0.1:27018/koin?authSource=admin

swagger:
server-url: http://localhost:8080

aws:
ses:
access-key: test
secret-key: test

s3:
bucket: test-bucket
custom_domain: https://static.example.com/

slack:
koin_event_notify_url: https://example.com/slack
koin_owner_event_notify_url: https://example.com/slack
koin_shop_review_notify_url: https://example.com/slack
koin_lost_item_notify_url: https://example.com/slack
logging:
error: https://example.com/slack

koin:
admin:
shop:
url: http://localhost:3000/store
review:
url: http://localhost:3000/review

OPEN_API_KEY_PUBLIC: test
OPEN_API_KEY_TMONEY: test

fcm:
koin:
url: koin://local

naver:
accessKey: test
secretKey: test
sms:
apiUrl: http://localhost:8888
serviceId: test
fromNumber: "01000000000"

cors:
allowedOrigins:
- http://localhost:3000
- http://localhost:8080

cloudfront:
distribution-id: test
region: ap-northeast-2

user:
verification:
max-verification-count: 5

address:
api:
url: https://business.juso.go.kr/addrlink/addrLinkApi.do
key: test

toss-payment:
secret-key: test_sk
api-base-url: https://api.tosspayments.com/v1/payments

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

45 changes: 0 additions & 45 deletions src/main/resources/db/migration/V107__update_coop_shop.sql

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/resources/db/migration/V108__add_coopshops.sql

This file was deleted.

32 changes: 0 additions & 32 deletions src/main/resources/db/migration/V109__alter__semester.sql

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/resources/db/migration/V111__add_table_coop_names.sql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/resources/db/migration/V116__add_course_type.sql

This file was deleted.

Loading
Loading