-
Notifications
You must be signed in to change notification settings - Fork 111
/
docker-compose.yml
130 lines (122 loc) · 2.96 KB
/
docker-compose.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
version: '3.7'
services:
front:
image: node:16
volumes:
- ./front-end:/app
- type: bind
source: ./front-end.sh
target: /app/entrypoint.sh
working_dir: /app
command: sh ./entrypoint.sh
ports:
- 4200:4200
environment:
API_URL: "http://web-mkt:3000"
web-mkt:
image: node:16
volumes:
- ./mkt-node:/app
- type: bind
source: ./mkt-node.sh
target: /app/entrypoint.sh
working_dir: /app
command: sh ./entrypoint.sh
environment:
SERVER_PORT: 3000
MONGO_URL: "mongodb://mkt-usuario:mkt-senha@mongo-mkt:27017/mkt?authSource=admin"
RABBITMQ_HOST: 'rabbitmq'
RABBITMQ_PORT: 5672
RABBITMQ_USERNAME: guest
RABBITMQ_PASSWORD: guest
ports:
- 3000:3000
depends_on:
- rabbitmq
- mongo-mkt
mongo-mkt:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: mkt-usuario
MONGO_INITDB_ROOT_PASSWORD: mkt-senha
MONGO_INITDB_DATABASE: mkt
rabbitmq:
image: rabbitmq
ports:
- 5672:5672
web-financeiro:
build: ./financeiro-php
command: sh ./entrypoint.sh
ports:
- 9501:9501
volumes:
- ./financeiro-php:/app
- type: bind
source: ./financeiro-php.sh
target: /app/entrypoint.sh
working_dir: /app
depends_on:
- rabbitmq
api-gateway:
image: nginx
volumes:
- ./servicos-nginx:/etc/nginx/conf.d
restart: always
ports:
- 80:80
depends_on:
- web-academico
- web-financeiro
- web-mkt
consumer-academico:
build: ./academico-php
volumes:
- ./academico-php:/app
- type: bind
source: ./academico-php.sh
target: /app/entrypoint.sh
working_dir: /app
command: sh ./entrypoint.sh
depends_on:
- rabbitmq
- postgre-academico
environment:
DB_DSN: pgsql:host=postgre-academico;dbname=academico;port=5432
DB_USERNAME: usuario_academico
DB_PASSWORD: senhapg
RABBITMQ_HOST: 'rabbitmq'
RABBITMQ_PORT: 5672
RABBITMQ_USERNAME: guest
RABBITMQ_PASSWORD: guest
GMAIL_USER: '[email protected]'
GMAIL_PASSWORD: 'sua-senha'
postgre-academico:
image: postgres
environment:
POSTGRES_PASSWORD: senhapg
POSTGRES_USER: usuario_academico
POSTGRES_DB: academico
web-academico:
build: ./academico-php-web
environment:
JWT_KEY: chave-jwt
DB_CONNECTION: pgsql
DB_HOST: postgre-academico
DB_DATABASE: academico
DB_USERNAME: usuario_academico
DB_PASSWORD: senhapg
APP_KEY: c08cbbfd6eefc83ac6d23c4c791277e4
APP_URL: http://web-academico:8080
APP_ENV: local
APP_DEBUG: "true"
volumes:
- ./academico-php-web/:/app
- type: bind
source: ./academico-php-web.sh
target: /app/entrypoint.sh
working_dir: /app
command: sh ./entrypoint.sh
ports:
- 8080:8080
depends_on:
- postgre-academico