ccarney16 / pterodactyl-containers

Pterodactyl Panel within a docker container
230 stars 78 forks source link

How can i change the ports #120

Closed finnie2006 closed 2 years ago

finnie2006 commented 2 years ago

Hello, how can i change the pterodactyl ports (80, 443)

haloflooder commented 2 years ago

You can just change the binded ports in the docker-compose.yml file

version: '2.3'
services:
  panel:
    depends_on:
      cache:
        condition: service_started
      mysql:
        condition: service_started
    env_file: ./conf.d/panel.env
    image: ccarney16/pterodactyl-panel:latest
    ports:
      - 8008:80 # THIS RIGHT HERE (host:container)
      - 9001:443 # THIS RIGHT HERE (host:container)
    restart: always
    volumes:
      - ./data/panel:/data
      - ./conf.d/letsencrypt:/etc/letsencrypt
      - ./conf.d/letsencrypt/webroot/.well-known:/var/www/html/public/.well-known
      - ./conf.d/certs:/etc/certs