You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This service deploys to Amazon EC2 through `.github/workflows/deploy.yml`.
4
+
5
+
## How to Deploy
6
+
7
+
1. Make sure the EC2 instance has Docker installed and the security group allows inbound traffic for the service port, currently `8080`.
8
+
2. Add the required GitHub Actions secrets listed below.
9
+
3. Run the `Deploy` workflow manually from GitHub Actions, or push to the `deploy` branch.
10
+
11
+
The workflow builds the Spring Boot jar, creates deploy-only config files from GitHub Secrets, uploads them to `/home/ubuntu/OnTime-back`, and restarts Docker Compose on the EC2 instance.
12
+
13
+
## Required EC2 Secrets
14
+
15
+
-`EC2_HOST`
16
+
-`EC2_USER`
17
+
-`EC2_SSH_KEY`
18
+
19
+
## Required Application Secrets
20
+
21
+
-`SPRING_APPLICATION_NAME`
22
+
-`SPRING_DATASOURCE_URL`
23
+
-`SPRING_DATASOURCE_USERNAME`
24
+
-`SPRING_DATASOURCE_PASSWORD`
25
+
-`SPRING_DATASOURCE_DRIVER_CLASS_NAME`
26
+
-`SPRING_JPA_HIBERNATE_DDL_AUTO`
27
+
-`JWT_SECRETKEY`
28
+
-`JWT_ACCESS_EXPIRATION`
29
+
-`JWT_REFRESH_EXPIRATION`
30
+
-`JWT_ACCESS_HEADER`
31
+
-`JWT_REFRESH_HEADER`
32
+
-`GOOGLE_WEB_CLIENT_ID`
33
+
-`GOOGLE_APP_CLIENT_ID`
34
+
-`APPLE_CLIENT_ID`
35
+
-`APPLE_LOGIN_KEY`
36
+
-`APPLE_TEAM_ID`
37
+
-`AUTHKEY_743M7R5W3W`
38
+
-`SPRING_FLYWAY_URL`
39
+
-`SPRING_FLYWAY_USER`
40
+
-`SPRING_FLYWAY_PASSWORD`
41
+
-`ONTIME_PUSH_FIREBASE_ADMINSDK`
42
+
43
+
## Optional Secrets
44
+
45
+
-`SPRING_JPA_DATABASE_PLATFORM` defaults to `org.hibernate.dialect.MySQL8Dialect`.
46
+
-`FEATURE_APPLE_LOGIN_ENABLED` defaults to `true`.
47
+
- Google and Kakao OAuth provider/registration secrets are included by the workflow when configured.
48
+
49
+
## Runtime Files on EC2
50
+
51
+
The deploy workflow writes these files under `/home/ubuntu/OnTime-back`:
52
+
53
+
-`project.jar`
54
+
-`Dockerfile`
55
+
-`docker-compose.yml`
56
+
-`config/application.properties`
57
+
-`secrets/firebase-adminsdk.json`
58
+
-`secrets/AuthKey_743M7R5W3W.p8`
59
+
60
+
Do not commit local `application.properties`, Firebase service account JSON, Apple `.p8` keys, or `.env` files.
0 commit comments