Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Link to defined services

Don Desroches December 6, 2019

If I have 2 defined services, the first named `cache` and the second named `db` how do I link them to a docker container i'm building as part of my steps?

- docker run -d -p 80:80 -p 443:443 -v --link cache --link db $BITBUCKET_CLONE_DIR:/data/sites/www/current --name web mydockername/mydockercontainer:latest

pipelines:
branches:
my-branch-name:
- step:
caches:
- docker
services:
- docker
- cache
- db
script:
- docker run -d -p 80:80 -p 443:443 -v --link cache --link db $BITBUCKET_CLONE_DIR:/data/sites/www/current --name web mydockername/mydockercontainer:latest
definitions:
services:
cache:redis:3.0.7
db: mysql:5.6

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events