Bind a non 80 port #2254
Answered
by
macav
grasscarp00
asked this question in
Q&A
Bind a non 80 port
#2254
-
|
I'm trying to deploy fizzy on fly.io, but it seems that 80 port cannot be bound there because of the permission. So is there a environmental variable or other ways that can change the default port? |
Beta Was this translation helpful? Give feedback.
Answered by
macav
Dec 31, 2025
Replies: 1 comment 1 reply
-
|
@grasscarp00 The server is launched via Thruster. In their README, there's a list of ENV variables you can specify to customize the ports. The one you're looking for is Here's my services:
web:
image: ghcr.io/basecamp/fizzy:main
restart: unless-stopped
ports:
- "8080:8080"
environment:
- HTTP_PORT=8080
- SECRET_KEY_BASE=abcdefgh
- BASE_URL=https://fizzy.example.com
- MAILER_FROM_ADDRESS=noreply@example.com
- SMTP_ADDRESS=mail.example.com
- SMTP_USERNAME=user
- SMTP_PASSWORD=pass
- VAPID_PRIVATE_KEY=myvapidprivatekey
- VAPID_PUBLIC_KEY=myvapidpublickey
volumes:
- fizzy:/rails/storage
volumes:
fizzy: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
grasscarp00
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@grasscarp00 The server is launched via Thruster. In their README, there's a list of ENV variables you can specify to customize the ports. The one you're looking for is
HTTP_PORT.Here's my
docker-compose.ymlas example: