Docker-compose.yml AutoArremate
Instrução de configuração
Realizar a configuração do arquivo/contêiner criado, conforme código e instruções contidas abaixo: (Nesta etapa, a posição dos espaços contidos no código não podem deferir do que está a seguir, recomendamos a cópia e posteriormente edição como instruído a seguir, tendo muito cuidado com tal critério.)
Arquivo modelo Docker-compose.yml
version: '3.3'
services:
kong-database:
image: postgres:9.6
container_name: kong-database-hml
restart: always
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
- POSTGRES_PASSWORD=kong
volumes:
- "./volumes/teste-autoarremate/postgres/data:/var/lib/postgresql/data"
networks:
- autoarremate-network
kong-migrations:
image: kong
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
- KONG_PG_PASSWORD=kong
- KONG_CASSANDRA_CONTACT_POINTS=kong-database
command: kong migrations bootstrap
restart: on-failure
depends_on:
- kong-database
networks:
- autoarremate-network
kong:
image: kong
container_name: kong-hml
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
- KONG_PG_USER=kong
- KONG_PG_PASSWORD=kong
- KONG_CASSANDRA_CONTACT_POINTS=kong-database
- KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_ADMIN_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_ERROR_LOG=/dev/stderr
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl
restart: on-failure
ports:
- 9093:8000
- 2998:8001
depends_on:
- kong-migrations
volumes:
- "./volumes/teste-autoarremate/kong/data:/home/kong"
networks:
- autoarremate-network
konga:
image: pantsel/konga
ports:
- 1339:1337
container_name: konga-hml
environment:
- NODE_ENV=production
depends_on:
- kong
volumes:
- "./volumes/teste-autoarremate/konga/data:/app/kongadata"
networks:
- autoarremate-network
plugin-nbs-infra:
image: (CONSULTAR NBS PARA OBTER IMAGEM ATUALIZADA)
depends_on:
- konga
restart: always
logging:
options:
max-size: "5m"
env_file:
pools.env
environment:
- SERVER_SERVLET_CONTEXT_PATH=/nbs-infra
- container_name=plugin-nbs-infra
- gateway_url=http://kong:8001
- server_url=http://200.179.98.136:9098/nbs-infra
volumes:
- "./volumes/plugin-nbs-infra/data:/files"
networks:
- autoarremate-network
plugin-autoarremate:
container_name: plugin-autoarremate
image: (CONSULTAR NBS PARA OBTER IMAGEM ATUALIZADA)
restart: always
logging:
options:
max-size: "5m"
env_file:
pools.env
environment:
- container_name=plugin-autoarremate
- ARTIFACT_NAME=plugin-autoarremate
- SERVER_SERVLET_CONTEXT_PATH=/autoarremate
- gateway_url=http://kong:8001
volumes:
- "./volumes/cometa/:/files/"
networks:
- autoarremate-network
networks:
autoarremate-network:
driver: bridge