Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wisehackermonkey/docker-front-back-end

example project of how to use docker compose in a application with a front, and a back end
https://github.com/wisehackermonkey/docker-front-back-end

Last synced: 17 days ago
JSON representation

example project of how to use docker compose in a application with a front, and a back end

Awesome Lists containing this project

README

        

# Docker ci experiment
[![Build Status](https://travis-ci.com/wisehackermonkey/docker-front-back-end.svg?branch=master)](https://travis-ci.com/wisehackermonkey/docker-front-back-end)

### use travis ci to build docker containers and host them on dockerhub

-----

Build
```
>docker-compose -f ./docker-compose-build.yml pull
>docker-compose -f ./docker-compose-build.yml build
>docker-compose ps
```
## Run
###### run in forground
```bash
docker-compose up
```
###### run in background (recommended)
```bash
>docker-compose up -d
```
## Deploy
###### install and run. NOTE: running in linux docker and git are required to run in production
```bash
>cd ~
>git clone https://github.com/wisehackermonkey/docker-front-back-end.git
>cd ./docker-front-back-end
>bash ./deploy_service.sh
```
## Develope
###### build the project
```
>docker login
>docker-compose -f ./docker-compose-build.yml pull
>docker-compose -f ./docker-compose-build.yml build
>docker push wisehackermonkey/frontend:latest
>docker push wisehackermonkey/backend:latest
```
###### Run
```bash
>docker-compose up [-d]
```