Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wisehackermonkey/docker-front-back-end
- Owner: wisehackermonkey
- Created: 2019-03-08T23:21:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T17:41:05.000Z (almost 6 years ago)
- Last Synced: 2024-11-10T12:44:48.893Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 174 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]
```