The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change mysql default port in setting bitbucket-pipeline ?

Min San
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2018
services:
mysql:
ports:
- "3307:3307"
image: mysql:5.6
environment:
MYSQL_DATABASE: 'ci_test'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'test_user'
MYSQL_PASSWORD: 'test_user_password'

I try to change the port with ports options but didn't work

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2018

Hi Min,

Bitbucket Pipelines does not currently support port mapping on services. Your service will use its default port. (In the case of mysql, 3306)

As a workaround, you can use Docker Compose to spin up your database container and map it is part of your Docker Compose configuration.

You can also add a feature request here: https://bitbucket.org/site/master/issues/new

Thanks,

Phil

Alex Arnold
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2019

Is this still the case today?? I am trying to do the same thing. I would hope this has changed since last year?

Like # people like this
Andrius
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2019

I am trying to do the same thing too :(

TAGS
AUG Leaders

Atlassian Community Events