Abel Tesfaye
Abel Tesfaye

Reputation: 33

How to expose the container without kamal proxy

I am deploying my frontend using Kamal 2. I want to turn off the kamal-proxy and expose the container's port directly. But when I run kamal deploy, the container is still in kamal network (bridge) and cannot be accessed from host. What should I change in the config:

This is my kamal config:

service: ngca-frontend
image: hunger1607/ngca-frontend
servers:
  web:
    hosts:
      - 127.0.0.1
    proxy: false

ssh:
  keys: [~/abel-ec2-keypair.pem]
  user: ubuntu

registry:
  username:
    - DOCKER_REGISTRY_USERNAME
  password:
    - DOCKER_REGISTRY_PASSWORD

builder:
  arch:
    - amd64
  dockerfile: Dockerfile

env:
  clear:
    PORT: "3000"

Upvotes: 0

Views: 30

Answers (0)

Related Questions