parent
7ffaba66a5
commit
04264931b5
@ -16,7 +16,6 @@ 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,49 +1,46 @@
|
|||||||
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
|
||||||
restart: always
|
restart: always
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
expose:
|
expose:
|
||||||
- 53
|
- 53
|
||||||
- 8300
|
- 8300
|
||||||
- 8301
|
- 8301
|
||||||
- 8302
|
- 8302
|
||||||
- 8400
|
- 8400
|
||||||
- 8500
|
- 8500
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- 8500:8500
|
- 8500:8500
|
||||||
command: -server -bootstrap -ui-dir /ui
|
command: -server -bootstrap -ui-dir /ui
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# 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:
|
- triton.cns.services=cloudapi
|
||||||
- triton.cns.services=cloudapi
|
env_file: .env
|
||||||
env_file: .env
|
environment:
|
||||||
environment:
|
- PORT=3000
|
||||||
- PORT=3000
|
ports:
|
||||||
ports:
|
- 3000:3000
|
||||||
- 3000:3000
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# Frontend
|
# Frontend
|
||||||
#############################################################################
|
#############################################################################
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
labels:
|
labels:
|
||||||
- triton.cns.services=backend
|
- triton.cns.services=backend
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- PORT=8000
|
- PORT=8000
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
|
@ -1,28 +1,26 @@
|
|||||||
version: '2'
|
consul:
|
||||||
services:
|
extends:
|
||||||
consul:
|
file: docker-compose.yml
|
||||||
extends:
|
service: consul
|
||||||
file: docker-compose.yml
|
ports:
|
||||||
service: consul
|
- 8500:8500
|
||||||
ports:
|
cloudapi:
|
||||||
- 8500:8500
|
extends:
|
||||||
cloudapi:
|
file: docker-compose.yml
|
||||||
extends:
|
service: cloudapi
|
||||||
file: docker-compose.yml
|
links:
|
||||||
service: cloudapi
|
- consul:consul
|
||||||
depends_on:
|
environment:
|
||||||
- consul
|
- PORT=3000
|
||||||
environment:
|
- ROOT_URL=http://localhost:3000
|
||||||
- PORT=3000
|
- CONSUL=consul
|
||||||
- ROOT_URL=http://localhost:3000
|
backend:
|
||||||
- CONSUL=consul
|
extends:
|
||||||
backend:
|
file: docker-compose.yml
|
||||||
extends:
|
service: backend
|
||||||
file: docker-compose.yml
|
links:
|
||||||
service: backend
|
- consul:consul
|
||||||
depends_on:
|
environment:
|
||||||
- consul
|
- PORT=8000
|
||||||
environment:
|
- ROOT_URL=http://localhost:8000
|
||||||
- PORT=8000
|
- CONSUL=consul
|
||||||
- ROOT_URL=http://localhost:8000
|
|
||||||
- CONSUL=consul
|
|
||||||
|
Loading…
Reference in New Issue
Block a user