Difficulty configuring docker image to use port

I’m using mollysocket to create a push server that I can use on my phone. However I’m having difficulties seemingly trying to get mollysocket to use the web service that is available from fly.io

Below are my Dockerfile and fly.template.toml files
FROM ghcr.io/mollyim/mollysocket:latest

ENV MOLLY_WEBSERVER=true
ENV MOLLY_PORT=8080
ENV MOLLY_ADDRESS="0.0.0.0"

EXPOSE 8080

CMD [ "server" ]

fly.template.toml

primary_region = “syd”

[build]
dockerfile = “Dockerfile”

[processes]
worker = “server”

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = [‘worker’]

[[mounts]]
source = “mollysocket_data”
destination = “/app”
initial_size = “3GB”
auto_extend_size_threshold = 0

[[vm]]
cpu_kind = “shared”
cpus = 1
memory = “256mb”
processes = [“worker”]

Apparently mollysocket is using the port 8080 and I’ve configured it from fly.io’s end to also expose port 8080 to be used as the web server’s front end, but if I navigate to the deployment link, it times out. Which tells me that mollysocket isn’t binding to the web service url. Anyone can help?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.