Repository used to be trainning devops (docker, docker-compose, nginx, gitlab-ci, traefik, ansible) with java stack (java, maven, spring-boot, kafka and mysql)
Java
Ansible
1. Copy the external_vars.example.yml to ansible-playbooks/vars/external_vars.yml and setting the token in it
# build the container
docker build -t devops/db ./docker-config/db
# build run the container in daemon mode
docker run --rm -d -h db -p 1000:3600 --env-file ./.env --network=devops-network devops/db
4. Build and up the container with the application
# build the container
docker build -t devops/app -f ./docker-config/app/Dockerfile .# build run the container in daemon mode
docker run --rm -d -h app -p 9000:8080 --env-file ./.env --network=devops-network devops/app