-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-development-orch.yml
113 lines (101 loc) · 2.38 KB
/
docker-compose-development-orch.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
name: "pz"
services:
database:
image: postgres:13.6-alpine
env_file:
- .env
expose:
# Deixa a porta do banco de dados acessivel
# para ferramentas externas como o dbeaver por exemplo.
- 5432
networks:
- default
volumes:
- ./pg_data:/var/lib/postgresql/data
backend: &pzbackend
build:
context: ./backend
args:
- "USERID=${USERID:-1000}"
- "GROUPID=${GROUPID:-1000}"
- "USERNAME=${USERNAME:-pzapp}"
command: /start.sh
user: "1000:1000"
env_file:
- .env
networks:
- default
- orchestration-network
volumes:
- ./backend:/app
- ./archive/log/backend:/archive/log
- ./archive/data:/archive/data
- ./orchestration/pipelines:/pipelines
- ./orchestration/processes:/processes
- ./orchestration/datasets:/datasets
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- database
- orchestration-api
pz-beat:
<<: *pzbackend
hostname: "pzbeat"
command: /app/pz-beat.sh
depends_on:
- backend
pz-worker:
<<: *pzbackend
hostname: "pzworker"
command: /app/worker.sh
depends_on:
- backend
frontend:
image: node:lts
user: "1000:1000"
working_dir: /app
volumes:
- ./frontend:/app
- ./.env.local:/app/.env.local
stdin_open: true
command: yarn dev
networks:
- default
orchestration-api:
extends:
file: ./orchestration/docker-compose.yml
service: orchestration-api
orchestration-local-worker:
extends:
file: ./orchestration/docker-compose.yml
service: orchestration-local-worker
orchestration-flower:
extends:
file: ./orchestration/docker-compose.yml
service: orchestration-flower
rabbitmq:
extends:
file: ./orchestration/docker-compose.yml
service: rabbitmq
orchestrator:
extends:
file: ./orchestration/docker-compose.yml
service: orchestrator
nginx:
image: nginx:1.21.6-alpine
ports:
- 80:8080
volumes:
- ./nginx_development-orch.conf:/etc/nginx/conf.d/default.conf:ro
- ./archive/data:/var/www/data
- ./backend/htmlcov:/var/www/coverage
networks:
- default
depends_on:
- backend
- frontend
- rabbitmq
- orchestration-flower
networks:
orchestration-network:
driver: bridge