Fly.io with one instance and one volume with auto_stop false
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
**/*.log
|
**/*.log
|
||||||
**/logs
|
**/logs
|
||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
**/data/*
|
|
||||||
!**/project/assembly.sbt
|
!**/project/assembly.sbt
|
||||||
|
|
||||||
# flyctl launch added from .idea/.gitignore
|
# flyctl launch added from .idea/.gitignore
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
FROM amazoncorretto:17-alpine
|
FROM amazoncorretto:17-alpine
|
||||||
|
|
||||||
COPY ./data /data
|
|
||||||
COPY ./web /web
|
COPY ./web /web
|
||||||
COPY ./target/scala-2.13/WeatherTool-assembly-0.1.1-SNAPSHOT.jar /app.jar
|
COPY ./target/scala-2.13/WeatherTool-assembly-0.1.1-SNAPSHOT.jar /app.jar
|
||||||
|
|
||||||
|
VOLUME /data
|
||||||
|
|
||||||
CMD ["java", "-jar", "/app.jar"]
|
CMD ["java", "-jar", "/app.jar"]
|
||||||
@@ -9,5 +9,13 @@ primary_region = "waw"
|
|||||||
[http_service]
|
[http_service]
|
||||||
internal_port = 8080
|
internal_port = 8080
|
||||||
force_https = true
|
force_https = true
|
||||||
auto_stop_machines = true
|
auto_stop_machines = false
|
||||||
auto_start_machines = true
|
auto_start_machines = true
|
||||||
|
|
||||||
|
[[mounts]]
|
||||||
|
source = "data_volume"
|
||||||
|
destination = "/data"
|
||||||
|
|
||||||
|
[scale]
|
||||||
|
count = 1
|
||||||
|
idle_timeout = 0
|
||||||
Reference in New Issue
Block a user