🔏
starhackit
  • README
  • Getting started
    • Requirements
    • Quick Start
  • Frontend
    • The Frontend
      • Npm scripts
    • Unit testing
    • End 2 End Testing
    • Multi Application
    • Production Build
    • Internationalization
    • Configuration
    • Cut and Paste detector
    • Webpack
  • Backend
    • Node Backend
      • Npm scripts
    • Development Enviromnent with docker-compose
    • Testing
      • Code Coverage
    • Configuration
    • Debugging
    • Database
    • Http Server
      • CORS
    • Authentication
      • Social Authentication
      • Local Authentication with JWT
    • Email
    • Redis
    • Api Model
      • Api Mocking
  • Deployment
    • Build, Tag and Push Docker Images
    • Releasing
    • Deploy Infrastructure with GruCloud
    • Deploy with Ansible
Powered by GitBook
On this page
  • Build
  • Run the whole system
  • Push

Was this helpful?

  1. Deployment

Build, Tag and Push Docker Images

PreviousApi MockingNextReleasing

Last updated 5 years ago

Was this helpful?

Edit at the root of the project and change the docker organisation name and as well as the version of the images for the api and ui

Change the frontend and backend version in their respective package.json

Build

To build the api and ui images

$ docker-compose build

Run the whole system

Before pushing the images to the repository, let's start whole system with the api, ui, postgres and redis:

$ docker-compose up -d
Creating network "starhackit_net" with the default driver
Creating starhackit_pg_1    ... done
Creating starhackit_redis_1 ... done
Creating starhackit_api_1   ... done
Creating starhackit_ui_1    ... done

Open a web browser at the given address:

$ open http://localhost:3001/

If something goes wrong, check the backend logs:

$ docker logs starhackit_api_1

Push

Push the images to the docker repository:

$ docker-compose push
docker-compose.yml