1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

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
ports:
- 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
- ROOT_URL=http://localhost:8000
- 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)
AVA := $(bindir)/ava
NYC := $(bindir)/nyc
@ -18,7 +19,7 @@ install: install-embed-markdown-loader
.PHONY: start
start:
$(ST) -p 8080 -d src/ --no-dot -a 7200000
$(ST) -p $(PORT) -d src/ --no-dot -a 7200000
.PHONY: install-production
install-production: install-embed-markdown-loader