-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.old.yml
145 lines (135 loc) · 4.2 KB
/
docker-compose.old.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: "3"
services:
##########################################################
### Servidor de Relatorios Stack Completa ################
##########################################################
# web:
# env_file:
# - sme_servidor_relatorios_${SME_SERVIDOR_RELATORIOS_ENVIRONMENT:-dev}.env
# container_name: sme_sr_container
# build: .
# ports:
# - "5001:5001"
# - "5000:5000"
# links:
# - postgres
# networks:
# - default
# depends_on:
# - flyway
# - jasper_reports_server
sme_sr_sgpworker:
env_file:
- sme_servidor_relatorios_worker.env
container_name: sme_sr_sgp_worker_container
restart: on-failure
build:
context: .
dockerfile: ./src/SME.SR.Workers.SGP/Dockerfile
ports:
- "5011:5001"
- "5010:5000"
networks:
- sme-network
volumes:
- ./relatorios:/app/relatorios:Z
depends_on:
- sme_sr_jasper_reports_server
- sme_sr_rabbitmq
##########################################################
### Database #############################################
##########################################################
# postgres:
# env_file:
# - sme_servidor_relatorios_${SME_SERVIDOR_RELATORIOS_ENVIRONMENT:-dev}.env
# container_name: sme_sr_postgres_container
# image: postgres
# environment:
# POSTGRES_USER: ${POSTGRES_USER:-postgres}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
# PGDATA: /data/postgres
# volumes:
# - postgres:/data/postgres
# ports:
# - "5432:5432"
# networks:
# - default
# pgadmin:
# env_file:
# - sme_servidor_relatorios_${SME_SERVIDOR_RELATORIOS_ENVIRONMENT:-dev}.env
# container_name: sme_sr_pgadmin_container
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
# PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
# volumes:
# - pgadmin:/root/.pgadmin
# ports:
# - "${PGADMIN_PORT:-5050}:80"
# networks:
# - default
# flyway:
# container_name: sme_sr_flyway
# image: boxfuse/flyway:5.2.4
# command: -url=jdbc:postgresql://postgres_container:5432/sme_sr?user=${POSTGRES_USER:-postgres}&password=${POSTGRES_PASSWORD:-postgres} -locations='filesystem:/opt/scripts' -outOfOrder=false migrate
# volumes:
# - ./scripts:/opt/scripts
# depends_on:
# - postgres
##########################################################
### Mensageria ###########################################
##########################################################
sme_sr_rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.7-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=bitnami
networks:
- default
ports:
- "5672:5672"
- "15672:15672"
##########################################################
### JRS - Jasper Reports Server ##########################
##########################################################
mariadb:
image: "bitnami/mariadb:10.3"
environment:
- MARIADB_USER=jasperreports
- MARIADB_DATABASE=jasperreports
- ALLOW_EMPTY_PASSWORD=yes
#volumes:
# - 'mariadb_data:/volumes/mariadb:Z'
sme_sr_jasper_reports_server:
container_name: jasper_reports_server_edited
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- JASPERREPORTS_DATABASE_USER=jasperreports
- JASPERREPORTS_DATABASE_NAME=jasperreports
- ALLOW_EMPTY_PASSWORD=yes
build:
context: .
dockerfile: jasper_server/Dockerfile
# volumes:
# - ./jasper_server/WEB-INF/web.xml:/bitnami/tomcat/data/jasperserver/WEB-INF/web.xml:z
networks:
- default
ports:
- "8080:8080"
- "8443:8443"
depends_on:
- mariadb
##########################################################
### Volumes, rede e infra estrutura ######################
##########################################################
volumes:
jasperreports_data:
driver: local
mariadb_data:
driver: local
networks:
sme-network:
driver: bridge
name: sme_external_network