From 81ba9efbac91bfa4e92b6daea28099e69e232ada Mon Sep 17 00:00:00 2001 From: Ankur Srivastava Date: Thu, 14 Sep 2017 13:16:56 +0200 Subject: [PATCH] fixed docker image links --- README.md | 22 +++++++++++++--------- docker-compose.yml | 6 ++---- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 14d57e88..05ef1a67 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,23 @@ # angular2-flask --- -`Angular2-Frontend` +`Backend` [![DockerPulls](https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg)](https://registry.hub.docker.com/u/ansrivas/flask-backend/) + +`Frontend` [![DockerPulls](https://img.shields.io/docker/pulls/ansrivas/angular2-frontend.svg)](https://registry.hub.docker.com/u/ansrivas/angular2-frontend/) -`Flask-backend` [![DockerPulls](https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg)](https://registry.hub.docker.com/u/ansrivas/flask-backend/) Simple angular2 app with python-flask backend (for learning angular2) ## Info +--- 1. `backend` directory contains the flask backend with simple authentication methods 2. `front` directory contains the angular2 frontend based on [angular-webpack-starter](https://github.com/AngularClass/angular2-webpack-starter) ## Usage +--- 1. Clone the repo @@ -53,14 +56,15 @@ Simple angular2 app with python-flask backend (for learning angular2) 5. Extra Note: To create a production build - ```bash - cd front - npm install webpack-dev-server rimraf webpack typescript -g - npm install - npm run build:prod - ``` + ```bash + cd front + npm install webpack-dev-server rimraf webpack typescript -g + npm install + npm run build:prod + ``` -### Docker support: +## Docker support: +--- The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose` diff --git a/docker-compose.yml b/docker-compose.yml index 288ff59a..e83cae3f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,10 @@ version: '2' services: backend-s: - build: ./backend - image: ansrivas/server:latest + image: ansrivas/flask-backend:latest container_name: backend-c frontend-s: - build: ./front - image: ansrivas/frontend:latest + image: ansrivas/angular2-frontend:latest container_name: frontend-c ports: - "3000:80"