118 lines
2.4 KiB
YAML
118 lines
2.4 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- /opt/infra/dev/nginx/conf.d:/etc/nginx/conf.d:ro
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
update_config:
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
modumfiscal-web:
|
|
image: git.modumsolucao.com.br/modumsolucao/modumfiscal-web:latest
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
update_config:
|
|
parallelism: 1
|
|
delay: 10s
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
rabbitmq:
|
|
image: rabbitmq:3-management-alpine
|
|
environment:
|
|
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USERNAME:-guest}
|
|
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD:-guest}
|
|
ports:
|
|
- "15672:15672"
|
|
volumes:
|
|
- rabbitmq-data:/var/lib/rabbitmq
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
update_config:
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
modumfiscal-api:
|
|
image: modumfiscal-api:latest
|
|
environment:
|
|
- RABBITMQ_HOST=rabbitmq
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 200s
|
|
max_attempts: 3
|
|
update_config:
|
|
parallelism: 1
|
|
delay: 15s
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
modumfiscal-bancario:
|
|
image: modumfiscal-integracao-bancaria:latest
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 200s
|
|
max_attempts: 3
|
|
update_config:
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
modumfiscal-nfse:
|
|
image: modumfiscal-nfse:latest
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 200s
|
|
max_attempts: 3
|
|
update_config:
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
modumfiscal-arquivo-processor:
|
|
image: modumfiscal-arquivo-processor:latest
|
|
environment:
|
|
- RABBITMQ_HOST=rabbitmq
|
|
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME:-guest}
|
|
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD:-guest}
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 200s
|
|
max_attempts: 3
|
|
update_config:
|
|
parallelism: 1
|
|
delay: 15s
|
|
order: start-first
|
|
networks:
|
|
- app-net
|
|
|
|
networks:
|
|
app-net:
|
|
external: true
|
|
|
|
volumes:
|
|
rabbitmq-data:
|