-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
149 lines (142 loc) · 3.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
149 lines (142 loc) · 3.35 KB
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
146
147
148
149
services:
postgres:
image: postgres:latest
ports:
- "5434:5432"
volumes:
- db_data:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=admin
mongodb:
image: mongodb/mongodb-community-server:latest
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
maildev:
image: maildev/maildev
ports:
- "1080:1080"
- "1025:1025"
usernator:
build: ./usernator
ports:
- "3001:3000"
- "3004:3001"
environment:
- DB_HOST=postgres
- DB_PORT=5434
- DB_USERNAME=usernator
- DB_PASSWORD=usernator
- DB_DATABASE=usernator
- SMTP_HOST=maildev
- SMTP_PORT=1025
- SMTP_USERNAME=app@codecanvas.de
- SMTP_PASSWORD=cc
- TASKY_ADDR=tasky:3001
- TEMPLATE_BASE_URL=http://localhost:3000/web
depends_on:
- postgres
- maildev
restart: on-failure:3
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
authy:
build:
context: ./authy
args:
- ARCH=aarch64
ports:
- "3002:3000"
environment:
- JWT_SECRET=secret
- WHITELIST=["/usernator/reset_password","/usernator/submit_password","/usernator/register","/executor_ui/_next"]
- SERVICE_LOCATIONS={usernator="http://usernator:3000", tasky="http://tasky:3000", executor_ui="http://executor_ui:8100"}
depends_on:
- usernator
- tasky
restart: on-failure:3
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
tasky:
build:
context: ./tasky
args:
- ARCH=aarch64
ports:
- "3005:3000"
- "3006:3001"
environment:
- DB_NAME=tasky
- DB_USERNAME=usernator
- DB_PASSWORD=usernator
- DB_HOST=postgres:5432
- USERNATOR_GRPC=http://usernator:3001
- MONGO_HOST="mongodb:27017"
- MONGO_USERNAME=tasky
- MONGO_PASSWORD=tasky
- MONGO_DATABASE=executor_files
- EXECUTOR_HTTP=http://executor:8000
depends_on:
- usernator
- postgres
restart: on-failure:3
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
executor:
build: ./executor
ports:
- "3003:8000"
environment:
- DATABASE_USERNAME=executor
- DATABASE_PASSWORD=executor
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- DATABASE_NAME=executor
- MONGODB_USERNAME=executor
- MONGODB_PASSWORD=executor
- MONGODB_HOST=mongodb:27017
- MONGODB_DATABASE=executor_files
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- postgres
executor_ui:
image: runabol/tork-web
ports:
- "3007:8100"
environment:
- BACKEND_URL=http://executor:8000
depends_on:
- executor
web:
build:
context: web/
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- API_URL=http://localhost:3002
- EXECUTOR_UI_URL=http://localhost:3007
depends_on:
- authy
- executor_ui
- tasky
- usernator
volumes:
db_data: