Coder Social home page Coder Social logo

angelodotnet / docker.application Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 97 KB

This is a public personal repository of application docker configurations (templates) useful for development and production environments

Dockerfile 80.63% HTML 19.37%
docker application docker-compose examples templates hacktoberfest hacktoberfest-accepted

docker.application's Introduction

Docker Application

There are currently the following templates:

Application

  • Event Store
  • KeyCloak
  • Grafana & Prometheus
  • Kong
  • Konga
  • Rabbit-MQ
  • Rabbit-MQ (2-node cluster mode)
  • Redis
  • Microsoft SDK - NET 6.x
  • Nginx
  • Postfix (Only SMTP Relay)
  • Postgres Admin
  • ProFTP (Server FTP)
  • Seq
  • Ubuntu Server 20.04 - NET 6.x
  • Ubuntu Server 22.04 - NET 6.x (Version 21.04 update)
  • Vault

If you like this repository, please drop a โญ on Github!

Network configuration

The docker-lan network (bridge type) was created with the command:

docker network create --driver=bridge --subnet=192.168.100.0/24 docker-lan

Application configuration

Regarding the configuration of the admin user (main user) for docker keycloak it is necessary after the docker has started to run the following commands: docker exec /opt/jboss/keycloak/bin/add-user-keycloak.sh -u USERNAME -p PASSWORD and subsequently: docker restart CONTAINER, taking care to replace the values indicated between minor and major before executing the commands just mentioned.


For the Kong (Postgres 13.1) and Konga (Postgres 9.6) database it is necessary to first create the relative docker database (respecting the version indicated) and then create USER and DATABASE as indicated below.


For the Postgres Admin before starting the docker it is necessary to set the necessary permissions on the volume bind /var/lib/pgadmin via the command: chown -R 5050: 5050 var/lib/pgadmin


For RabbitMQ (2-node cluster mode), after the two related dockers have been started, it is necessary to terminate the cluster configuration using these commands:

  • docker exec rabbitNode2 rabbitmqctl stop_app
  • docker exec rabbitNode2 rabbitmqctl join_cluster [email protected]
  • docker exec rabbitNode2 rabbitmqctl start_app
  • docker exec rabbitNode1 rabbitmqctl set_policy ha "." '{"ha-mode":"all"}'

Note: Where ha is the name of the policy and the "." (dot) is the pattern and ha-mode set to "all" indicates that all queues must be high available. And to check the cluster status use the command docker exec rabbitNode1 rabbitmqctl cluster_status

To ensure that two nodes can belong to the same cluster, it is necessary to ensure that certain ports are accessible, in particular:

  • 4369: epdm (ERLANG PORT MAPPER DAEMON), a peer discovery service, used by RabbitMQ nodes and CLI tools;
  • 5672: port used by the AMQP protocol;
  • 25672: used for communication between nodes and with the CLI;
  • 35672-35682: used by CLI tools for communication with nodes;
  • 15672: used for example for the UI management plugin.

For SEQ (docker version) the first boot occurs without any form of active login. After the docker is active, navigate to the SETTINGS > USERS section to enable authentication to access the dashboard.


For ElasticSearch before starting the docker you need to run the following command sudo chown -R 1000:1000 data/ where the data/ folder is the volume folder indicated in the elastic compose docker.

Important

Before starting the related Kong and Konga dockers, modify the USERNAME, PASSWORD and DATABASE NAME indicated in the relevant dockers and compose with the same data used in the commands previously used to create USER and DATABASE.

Also change the IP-SERVER-DOCKER parameter by replacing it with the ip address of the server hosting the dockers.

The dockers kong-migration and konga-migration, present in the docker compose of Kong and Konga, are used only for the first time to create the database structures for the corresponding services.

docker.application's People

Contributors

angelodotnet avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

netdevforlife

docker.application's Issues

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.