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

Min San 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

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 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 December 18, 2019

I am trying to do the same thing too :(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events