-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
163 lines (148 loc) · 3.49 KB
/
Copy pathdocker-compose.yml
File metadata and controls
163 lines (148 loc) · 3.49 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
version: '3.7'
services:
microapi:
image: micro/micro:v2.9.3
command: api --handler=rpc
ports:
- "8080:8080"
environment:
MICRO_REGISTRY: "mdns"
MICRO_API_ADDRESS: ":8080"
microproxy:
image: micro/micro:v2.9.3
command: proxy
ports:
- "8081:8081"
environment:
MICRO_REGISTRY: "mdns"
MICRO_PROXY_ADDRESS: ":8081"
microweb:
image: micro/micro:v2.9.3
command: web
ports:
- "8082:8082"
environment:
MICRO_REGISTRY: "mdns"
MICRO_WEB_ADDRESS: ":8082"
redis:
image: redis:latest
command: redis-server --appendonly yes
hostname: redis
volumes:
- redis-data:/data # ensures data persistence between restarting
ports:
- "6379:6379"
user-service:
restart: always
build: ./user-service
volumes:
- ./keys:/keys
links:
- "postgres"
depends_on:
- "postgres"
environment:
ENV_NAME: "compose"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
test-run-service:
restart: always
build: ./test-run-service
volumes:
- ./keys:/keys
links:
- "postgres"
depends_on:
- "postgres"
environment:
ENV_NAME: "compose"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
file-service:
restart: always
build: ./file-service
volumes:
- ./keys:/keys
links:
- redis
depends_on:
- redis
environment:
ENV_NAME: "compose"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
storage-uploader-service:
restart: always
build: ./storage-uploader-service
volumes:
- ./keys:/keys
environment:
ENV_NAME: "compose"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
resource-manager-service:
restart: always
build: ./resource-manager-service
volumes:
- ./keys:/keys
links:
- "postgres"
depends_on:
- "postgres"
environment:
ENV_NAME: "compose"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
wss:
restart: always
build: ./wss
volumes:
- ./keys:/keys
ports:
- "3001:3001"
depends_on:
- "redis"
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
TOKEN_SECRET: "mySuperSecretKey"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
# file-builder:
# restart: always
# build: ./file-builder
# privileged: true
# volumes:
# - ./keys:/keys
# - /var/run/docker.sock:/var/run/docker.sock
# ports:
# - "8090:8090"
# environment:
# ENV_NAME: "compose"
# GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
# river-runner:
# restart: always
# build: ./river-runner
# privileged: true
# volumes:
# - ./keys:/keys
# - /var/run/docker.sock:/var/run/docker.sock
# ports:
# - "8091:8091"
# environment:
# ENV_NAME: "compose"
# GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
run-controller-service:
restart: always
build: ./run-controller-service
volumes:
- ./keys:/keys
environment:
ENV_NAME: "compose"
GOOGLE_APPLICATION_CREDENTIALS: "/keys/app_user.key.json"
postgres:
image: postgres:alpine
volumes:
- ./postgres-data:/var/lib/postgresql/data/ # ensures data persistence between restarting
environment:
POSTGRES_DB: "fleet"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "root"
ports:
- 5433:5432
volumes:
redis-data: