40.4 Deploy Application to docker-ec2 (#40)
This commit is contained in:
@ -475,4 +475,8 @@ systemctl restart docker
|
|||||||
- Allow 443 port from anywhere
|
- Allow 443 port from anywhere
|
||||||
- Attach `https-443` SG to `docker-ec2` instance
|
- 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
|
||||||
|
|||||||
@ -184,7 +184,7 @@
|
|||||||
</build>
|
</build>
|
||||||
<run>
|
<run>
|
||||||
<ports>
|
<ports>
|
||||||
<post>8080:8080</post>
|
<port>443:8080</port>
|
||||||
</ports>
|
</ports>
|
||||||
<env>
|
<env>
|
||||||
<SPRING_PROFILES_ACTIVE>aws-rds</SPRING_PROFILES_ACTIVE>
|
<SPRING_PROFILES_ACTIVE>aws-rds</SPRING_PROFILES_ACTIVE>
|
||||||
|
|||||||
Reference in New Issue
Block a user