GithubHelp home page GithubHelp logo

generator-docker-compose-spring's Introduction

Introduction

This repository contains a generator that supports using docker-compose for services needed by a Spring Boot application that runs on your local machine.

If you selected a starter from the Tanzu Starter Service UI that uses this generator, it will have already been executed for you by the Starter Service and the directory docker will contain the files you need to start the services.

Supported Services

Postgres

Execute the commands:

cd docker
docker-compose -f docker-compose-postgres.yaml up

This command will create two containers. One for the postgres database and one for the pgAdmin GUI. If you encounter an error, you can execute docker system prune and also look to remove volumes created using docker volume rm <volume-name>.

A database named demo is already created for you to use. The database demo is available on port 15432 with username postgres and password password. Access the pgAdmin GUI at localhost:15433.

You can access the psql CLI by typing:

docker exec -it demo_postgres bash

You will see the following output:

root@bda99318078b:/# psql -U postgres
psql (12.4 (Debian 12.4-1.pgdg100+1))
Type "help" for help.

postgres=#

Manually running the generator

To install the generator to your machine, type

tss generator install --go-getter-url=github.com/markpollack/generator-docker-compose-spring

To execute the generator manually, type tss docker-compose new.

The generator support is currently limited to maven based Maven projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.