40.4 Deploy Application to docker-ec2 (#40)

This commit is contained in:
Art
2021-09-27 18:01:44 +03:00
parent 15c1b30dad
commit 1e168df1d4
2 changed files with 5 additions and 1 deletions

View File

@ -475,4 +475,8 @@ systemctl restart docker
- Allow 443 port from anywhere
- Attach `https-443` SG to `docker-ec2` instance
##### 40.4 Deploy Application to `docker-ec2`
- `mvn docker:stop`
- `mvn clean package docker:build docker:start -DskipTests`
- Visit `https://dockerapp.shyshkin.net` -> allow unsecure

View File

@ -184,7 +184,7 @@
</build>
<run>
<ports>
<post>8080:8080</post>
<port>443:8080</port>
</ports>
<env>
<SPRING_PROFILES_ACTIVE>aws-rds</SPRING_PROFILES_ACTIVE>