ui: Implementing deploy

This commit is contained in:
Tom Gallacher 2016-10-28 16:50:05 +01:00
parent 66d82ab84b
commit 329c0f92cc
3 changed files with 25 additions and 1 deletions

View File

@ -44,3 +44,16 @@ frontend:
- PORT=8000 - PORT=8000
ports: ports:
- 8000:8000 - 8000:8000
#############################################################################
# Frontend
#############################################################################
ui:
image: quay.io/yldio/joyent-dashboard-ui:latest
mem_limit: 128m
labels:
- triton.cns.services=ui
env_file: .env
environment:
- PORT=8080
ports:
- 8080:8080

View File

@ -26,3 +26,13 @@ frontend:
- PORT=8000 - PORT=8000
- ROOT_URL=http://localhost:8000 - ROOT_URL=http://localhost:8000
- CONSUL=consul - CONSUL=consul
ui:
extends:
file: docker-compose.yml
service: ui
build: ./ui
links:
- consul:consul
environment:
- PORT=8080
- CONSUL=consul

View File

@ -1,3 +1,4 @@
PORT=8080
bindir := $(shell yarn bin) bindir := $(shell yarn bin)
AVA := $(bindir)/ava AVA := $(bindir)/ava
NYC := $(bindir)/nyc NYC := $(bindir)/nyc
@ -18,7 +19,7 @@ install: install-embed-markdown-loader
.PHONY: start .PHONY: start
start: start:
$(ST) -p 8080 -d src/ --no-dot -a 7200000 $(ST) -p $(PORT) -d src/ --no-dot -a 7200000
.PHONY: install-production .PHONY: install-production
install-production: install-embed-markdown-loader install-production: install-embed-markdown-loader