Skip to content

Commit

Permalink
Add registry prefix (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitan authored Aug 25, 2016
1 parent d012fe6 commit 948e331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build-and-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ curl https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz | tar xzv

export TAG=1.0
export ROLEX_SWARM_MANAGER_IP=$ROLEX_IP
export REGISTRY_PREFIX=demoregistry.dataman-inc.com/library/
docker-compose -p rolex -f deploy/docker-compose.yml stop
docker-compose -p rolex -f deploy/docker-compose.yml rm -f

Expand Down
6 changes: 3 additions & 3 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
build:
context: ../doc/registry
dockerfile: ./Dockerfile
image: registry:rolex${TAG}
image: ${REGISTRY_PREFIX}registry:rolex${TAG}
ports:
- "5000:5000"
- "5001:5001"
Expand All @@ -17,7 +17,7 @@ services:
build:
context: ../
dockerfile: ./deploy/Dockerfile
image: rolex:${TAG}
image: ${REGISTRY_PREFIX}rolex:${TAG}
environment:
- ROLEX_SWARM_MANAGER_IP
ports:
Expand All @@ -27,7 +27,7 @@ services:
build:
context: ./mysql
dockerfile: ./Dockerfile
image: mysql:rolex${TAG}
image: ${REGISTRY_PREFIX}mysql:rolex${TAG}
environment:
- MYSQL_ROOT_PASSWORD=111111
ports:
Expand Down

0 comments on commit 948e331

Please sign in to comment.