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
It also fails before restart if the datasource URL does not point to an RDS MySQL endpoint using the `ontime_prod` database, or if EC2 cannot reach RDS on `3306`.
Copy file name to clipboardExpand all lines: ontime-back/docs/deployment/ec2.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This service deploys to Amazon EC2 through `.github/workflows/deploy.yml`.
8
8
2. Add the required GitHub Actions secrets listed below.
9
9
3. Run the `Deploy` workflow manually from GitHub Actions, or push to the `deploy` branch.
10
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.
11
+
The workflow builds a Docker image, pushes it to GHCR, uploads `docker-compose.yml` to `/home/ubuntu/OnTime-back`, writes a production `.env` from GitHub Secrets, verifies private RDS connectivity, and restarts Docker Compose on the EC2 instance.
12
12
13
13
## Required EC2 Secrets
14
14
@@ -22,8 +22,6 @@ The workflow builds the Spring Boot jar, creates deploy-only config files from G
22
22
-`SPRING_DATASOURCE_URL`
23
23
-`SPRING_DATASOURCE_USERNAME`
24
24
-`SPRING_DATASOURCE_PASSWORD`
25
-
-`SPRING_DATASOURCE_DRIVER_CLASS_NAME`
26
-
-`SPRING_JPA_HIBERNATE_DDL_AUTO`
27
25
-`JWT_SECRETKEY`
28
26
-`JWT_ACCESS_EXPIRATION`
29
27
-`JWT_REFRESH_EXPIRATION`
@@ -34,27 +32,28 @@ The workflow builds the Spring Boot jar, creates deploy-only config files from G
34
32
-`APPLE_CLIENT_ID`
35
33
-`APPLE_LOGIN_KEY`
36
34
-`APPLE_TEAM_ID`
37
-
-`AUTHKEY_743M7R5W3W`
38
-
-`SPRING_FLYWAY_URL`
39
-
-`SPRING_FLYWAY_USER`
40
-
-`SPRING_FLYWAY_PASSWORD`
41
-
-`ONTIME_PUSH_FIREBASE_ADMINSDK`
35
+
-`APPLE_PRIVATE_KEY_BASE64`
36
+
-`FIREBASE_CREDENTIALS_BASE64`
42
37
43
38
## Optional Secrets
44
39
45
-
-`SPRING_JPA_DATABASE_PLATFORM` defaults to `org.hibernate.dialect.MySQL8Dialect`.
40
+
-`BACKEND_HTTP_PORT` defaults to `8080`.
41
+
-`BACKEND_MEMORY_LIMIT` defaults to `768m`; use `640m` if the EC2 instance is memory constrained.
42
+
-`BACKEND_CPU_LIMIT` defaults to `1.0`.
46
43
-`FEATURE_APPLE_LOGIN_ENABLED` defaults to `true`.
47
44
- Google and Kakao OAuth provider/registration secrets are included by the workflow when configured.
48
45
49
46
## Runtime Files on EC2
50
47
51
48
The deploy workflow writes these files under `/home/ubuntu/OnTime-back`:
0 commit comments