-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
74 lines (68 loc) · 1.5 KB
/
docker-compose.yaml
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
services:
mototrace-app:
build:
context: mototrace-app
container_name: mototrace-app
ports:
- "8080:80"
gateway-api:
build:
context: gateway-api
container_name: gateway-api
restart: always
ports:
- "8090:8090"
environment:
- ROUTE_HOST_MOTOTRACE_API=mototrace-api
- ROUTE_HOST_WORKER_POSITION=worker-position
mototrace-api:
build:
context: mototrace-api
container_name: mototrace-api
restart: always
ports:
- "8091:8091"
environment:
- DB_HOST=postgres
- DB_PORT=5432
depends_on:
postgres:
condition: service_started
worker-position:
build:
context: worker-position
container_name: worker-position
restart: always
ports:
- "8092:8092"
environment:
- DB_HOST=mongodb
- DB_PORT=27017
- ROUTE_HOST_MOTOTRACE_API=mototrace-api
depends_on:
mongodb:
condition: service_started
postgres:
image: postgres
container_name: postgres-container
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: mototrace
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
volumes:
- mototrace-data:/var/lib/postgresql/data
mongodb:
image: mongo:5.0
container_name: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_PASSWORD: pass
TZ: America/Sao_Paulo
ports:
- "27017:27017"
volumes:
mototrace-data: