[+] AUTOR: Gerardo Junior
[+] SITE: https://gerardo-junior.com
[+] EMAIL: me@gerardo-junior.com
[+] GITHUB: https://github.com/gerardo-junior/restgistry
[+] TELEGRAM: @gerardojunior
- docker ~ 18.04.0-ce
- docker-compose ~ 1.21.1
First clone of the project
git clone https://github.com/gerardo-junior/restgistry.git
cd restgistry
Copy the configuration file, and edit
cp .env.example .env # and configure!
ready, now you can use ;)
docker-compose up # the first time, it will download the images
*~ Tip: using the docker-compose you can add -d
and you can keep with your terminal ~*
To access the api:
Wait for message and open localhost:8080 in your browser to go to /api-doc
To use a cli:
docker-compose exec restgistry node
docker-compose exec restgistry npm run start
you will need to install:
- [nodejs]
- [mysql]
configure .env to local mysql
npm install
npm run start
edit the file docker-compose.yml
# (...)
restgistry:
image: gerardojunior/nodejs:stable
restart: on-failure
container_name: restgistry
command: npm run start
env_file:
- .env
volumes:
- .:/src
ports:
- [any door]:8080
links:
- db
depends_on:
- db
# (...)
This project is licensed under the MIT License - see the LICENSE file for details