mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
deploy: add docker login
This commit also includes the required format changes to ensure that we can push from docker compose. This means that we needed to update the docker-compose.yml files to version 2.0
This commit is contained in:
parent
57a1b28b27
commit
648caa4dd4
@ -16,6 +16,7 @@ get_triton_details
|
|||||||
write_env_file
|
write_env_file
|
||||||
|
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
docker login -e="." -u="$_DOCKER_LOGIN_USERNAME" -p="$_DOCKER_LOGIN_PASSWORD" $_DOCKER_REGISTRY
|
||||||
docker-compose push
|
docker-compose push
|
||||||
|
|
||||||
export DOCKER_HOST=$_DOCKER_HOST
|
export DOCKER_HOST=$_DOCKER_HOST
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# CONSUL
|
# CONSUL
|
||||||
#############################################################################
|
#############################################################################
|
||||||
consul:
|
consul:
|
||||||
image: progrium/consul:latest
|
image: progrium/consul:latest
|
||||||
labels:
|
labels:
|
||||||
- triton.cns.services=consul
|
- triton.cns.services=consul
|
||||||
@ -21,7 +23,8 @@ consul:
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
# CloudAPI GraphQL
|
# CloudAPI GraphQL
|
||||||
#############################################################################
|
#############################################################################
|
||||||
cloudapi:
|
cloudapi:
|
||||||
|
image: quay.io/yldio/joyent-dashboard-cloudapi-graphql
|
||||||
build: ./cloudapi-graphql
|
build: ./cloudapi-graphql
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
labels:
|
labels:
|
||||||
@ -34,7 +37,7 @@ cloudapi:
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
# Frontend
|
# Frontend
|
||||||
#############################################################################
|
#############################################################################
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
labels:
|
labels:
|
||||||
|
@ -1,25 +1,27 @@
|
|||||||
consul:
|
version: '2'
|
||||||
|
services:
|
||||||
|
consul:
|
||||||
extends:
|
extends:
|
||||||
file: docker-compose.yml
|
file: docker-compose.yml
|
||||||
service: consul
|
service: consul
|
||||||
ports:
|
ports:
|
||||||
- 8500:8500
|
- 8500:8500
|
||||||
cloudapi:
|
cloudapi:
|
||||||
extends:
|
extends:
|
||||||
file: docker-compose.yml
|
file: docker-compose.yml
|
||||||
service: cloudapi
|
service: cloudapi
|
||||||
links:
|
depends_on:
|
||||||
- consul:consul
|
- consul
|
||||||
environment:
|
environment:
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
- ROOT_URL=http://localhost:3000
|
- ROOT_URL=http://localhost:3000
|
||||||
- CONSUL=consul
|
- CONSUL=consul
|
||||||
backend:
|
backend:
|
||||||
extends:
|
extends:
|
||||||
file: docker-compose.yml
|
file: docker-compose.yml
|
||||||
service: backend
|
service: backend
|
||||||
links:
|
depends_on:
|
||||||
- consul:consul
|
- consul
|
||||||
environment:
|
environment:
|
||||||
- PORT=8000
|
- PORT=8000
|
||||||
- ROOT_URL=http://localhost:8000
|
- ROOT_URL=http://localhost:8000
|
||||||
|
Loading…
Reference in New Issue
Block a user