Skip to content

Getting error while deploying - address already in use #631

Closed Answered by DezyNation
DezyNation asked this question in Q&A
Discussion options

You must be logged in to vote

I solved it by following the steps for reverse proxy. In your docker-compose.yml use any port which is available.

# Caddy web server
  caddy:
    image: caddy
    restart: always
    env_file: .env
    ports:
      - "4271:80"
      - "4272:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - ./data/caddy-data:/data
      - ./data/caddy-config:/config

And then in your .env, mention the port you are reffering to:
HOSTNAME=:443

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DezyNation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant