I’m trying to setup the docker Drone CI server in an EC2 instance with the below yaml file.
version: “3.9”
services:
drone-server:
image: drone/drone:1
ports:
- “433:433”
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/drone:/var/lib/drone:z
restart: always
environment:
- DRONE_USER_FILTER=xx
- DRONE_RUNNER_CAPACITY=2
- DRONE_BITBUCKET_CLIENT_ID=
- DRONE_USER_CREATE=username:xxx,admin:true
- DRONE_BITBUCKET_CLIENT_SECRET=
- DRONE_RPC_SECRET=
- DRONE_SERVER_HOST=mycompany.com
- DRONE_SERVER_PROTO=https
- DRONE_TOKEN=abcd
- DRONE_LOGS_TRACE=truedrone-runner: image: drone/drone-runner-docker:1 volumes: - /var/run/docker.sock:/var/run/docker.sock ports: - 3000:3000 restart: always depends_on: - drone-server environment: - DRONE_RPC_PROTO=https - DRONE_RPC_HOST=mycompany.com - DRONE_RPC_SECRET=<rpc secret> - DRONE_RUNNER_CAPACITY=2 - DRONE_RUNNER_NAME=${HOSTNAME}
But no matter what port I specify in the ports section for the drone server I see the server starts in port 80 as seen from the server log below.
{“acme”:false,“host”:“ci.casino-ai.com”,“level”:“info”,“msg”:“starting the http server”,“port”:“:80”,“proto”:“https”,“time”:“2021-06-21T18:04:39Z”,“url”:"https://mycompany.com”}
If I open the port 80 on AWS I’m able to see the Drone CI page and it connects to bitbucket and picks up the repositories.
But my company policy does not allow me to open port 80, I want to run this only on port 443 or something other than 80.
I’m not able to figure out what could be the issue. Can you help me with this.