Skip to content

Applying knowledges about docker, docker-compose, vagrant, ansible, traefik and CI/CD

Notifications You must be signed in to change notification settings

LuhBezerra/DevOps-CI-CD

Repository files navigation

Installation

with docker-compose

1. Copy the env-example to .env and setting it

cp env-example .env

2. Set docker secrets

  • To use the secrets is necessary to create 2 txt files db_password.txt and db_root_password.txt
  • Then create the secrets with docker
    docker secret create db_password db_password.txt
    docker secret create db_root_password db_root_password.txt

3. Build and up the containers

docker-compose up -d

4. Open the get url http://localhost:80/users/list on browser

4. Or send a post to url http://localhost:80/users/add on client http

Important: Project use Adminer so you can see database details in http://localhost:8081

Project use Adminer so you can see database details in http://localhost:8081
Check user and password in your .env 

Vagrant and Ansible

1. Copy the registration.token.env-example to registration.token.env and setting it

cp registration.token.env-example ansible-playbooks/registration.token.env

2. Build and up the machines

vagrant up

Read Me First

The following was discovered as part of building this project:

  • The original package name 'com.example.spring-boot' is invalid and this project uses 'com.example.springboot' instead.

Getting Started

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

About

Applying knowledges about docker, docker-compose, vagrant, ansible, traefik and CI/CD

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •