Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hunsche/oauth2-rad-tdc2018
https://github.com/hunsche/oauth2-rad-tdc2018
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hunsche/oauth2-rad-tdc2018
- Owner: hunsche
- Created: 2018-07-21T16:27:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T18:01:46.000Z (over 6 years ago)
- Last Synced: 2024-11-09T06:44:04.480Z (2 months ago)
- Language: Pascal
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker
This project requires the tools:
- Docker Machine
- Docker Compose
- Docker### Installation
Use git bash to configuration tools.
Install Docker Machine.
```sh
$ mkdir -p "$HOME/bin"
$ curl -L "https://github.com/docker/machine/releases/download/v0.14.0//docker-machine-Windows-x86_64.exe" > "$HOME/bin/docker-machine.exe"
$ chmod +x "$HOME/bin/docker-machine.exe"
```Create and configure default machine.
```sh
$ docker-machine create -d virtualbox --virtualbox-disk-size "50000" default
$ eval $(docker-machine env default)
```Install Docker Compose
```sh
$ curl -L "https://github.com/docker/compose/releases/download/1.22.0-rc1/docker-compose-Windows-x86_64.exe" > "$HOME/bin/docker-compose.exe"
$ chmod +x "$HOME/bin/docker-compose.exe"
```Install Docker
```sh
$ mkdir -p "$HOME/tmp"
$ curl -L "https://download.docker.com/win/static/stable/x86_64/docker-17.09.0-ce.zip" > "$HOME/tmp/docker.zip"
$ unzip "$HOME/tmp/docker.zip" -d "$HOME/tmp/"
$ mv "$HOME/tmp/docker/docker.exe" "$HOME/bin/docker.exe"
$ rm -rf "$HOME/tmp/docker" "$HOME/tmp/docker.zip"
```### Start
Use git bash to start service.
Get IP.
```sh
$ docker-machine ip
```Open project folder.
```sh
$ docker-compose up
```Set Enviroments:
- STATIC_PATH: Path of static files ".../oauth2-rad-tdc2018/src/static"
- REDIS_HOST: Host of Redis "192.168.99.100"
- REDIS_PORT: Port of Redis "6379"