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
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
Is this still the case today?? I am trying to do the same thing. I would hope this has changed since last year?
I am trying to do the same thing too
It looks like you're new here. Sign in or register to get started.