forked from animelover1984/horahora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.envs
156 lines (153 loc) · 5.04 KB
/
docker-compose.yml.envs
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
version: "3"
services:
react_app:
build: webapp
restart: always
ports:
- "3000:3000"
volumes:
- ./webapp:/webapp
frontapi:
$FRONT_API_BUILD_DIRECTIVE
restart: always
ports:
- "8083:8083"
environment:
- GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn
- UserServiceGRPCAddress=userservice:7777
- VideoServiceGRPCAddress=videoservice:7777
- SchedulerServiceGRPCAddress=scheduler:7777
- JaegerAddress=
scheduler:
$SCHEDULER_BUILD_DIRECTIVE
restart: always
environment:
- GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn
- pgs_host=postgres
- pgs_port=5432
- pgs_user=admin
- pgs_pass=password
- pgs_db=scheduler
- redis_host=redis
- redis_port=6379
- redis_pass=
# TODO(ivan): probably should add this to config
- GRPCPort=7777
- VideoServiceGRPCAddress=videoservice:7777
- NumberOfRetries=1
- SocksConn=
- SyncPollDelay=1m
- MaxDLFileSize=300
videoservice:
$VIDEOSERVICE_BUILD_DIRECTIVE
restart: always
environment:
- GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn
- pgs_host=postgres
- pgs_port=5432
- pgs_user=admin
- pgs_pass=password
- pgs_db=videoservice
- redis_host=redis
- redis_port=6379
- redis_pass=
- GRPCPort=7777
- UserServiceGRPCAddress=userservice:7777
- BucketName=$BUCKET_NAME
- Local=false
- OriginFQDN=$ORIGIN_FQDN
- AWS_DEFAULT_REGION=
- JaegerAddress=
- StorageBackend=$STORAGE_BACKEND
- StorageAPIID=$STORAGE_API_ID
- StorageAPIKey=$STORAGE_API_KEY
- MinioEndpoint=minio:9000
- ApprovalThreshold=1
volumes:
- $HOME/.aws/:/root/.aws/:ro
userservice:
$USERSERVICE_BUILD_DIRECTIVE
restart: always
environment:
- GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn
- pgs_host=postgres
- pgs_port=5432
- pgs_user=admin
- pgs_pass=password
- pgs_db=userservice
- |
RSA_KEYPAIR=
-----BEGIN RSA PRIVATE KEY-----
MIIEpgIBAAKCAQEA+MHfP6bK1Tm5Qsy49WSD9TIsdKvstfnshIIlc6Or7jr4Lz/c
ZqivsGtsuenlyyMg0uEFKGC2VXojdyysPwsPN1V+OZNKrUexuUKCJ25xCob8xncJ
3ml2zLRyEKTAWTyV9KlaviapphoKdO+kUzVM+mM+BqXv2C/gS4nGhH4xN/8GRlGM
3x/w9d/kMbk0yVo8WvNCObAj1PBzTTc6pvXHijS8HwR4Kf6cUgEjLbAjDZqTAFQH
kL3wTTUspRbyCqNBY3pahqsMJsur3TnHBzdYrKhXOIdW5HF2H0Vi0URX03mD1uo3
775yQMy/R90pX2pYDXO50HVmlaBSRaRwVq4PWwIDAQABAoIBAQDOnDAx7PXxLfWK
3wEMiIT1hcvYx+deqgthb7ttlda6ku4KSI9mENuDu2Xd8MB0/WNI467l/5XR3xVP
6aHS5vunaPHjHkxbKf4aMnxqBdgL91xB9yMSQSR0F7fZzQ0Z0TF3uaXt46zqkhx3
TYd9uPqLyRv+Z5qTRAiWlQN2jl2Q9DRn3HdTaGPF5rsn2CjFPmoQGX7A+objSBSq
3JrU4cv6huqCZODqyCgVjdHfaRUFLGCPs5phoO29LY2DElo6BhWaJl2tvIXy2eqN
yqNwYjHHfMmzBv+OWyOY9IuussRajx4JvlIdh0M8Fm5Tniqeip/LpG0GOvK8l+qd
n3q3GLrJAoGBAP8SkhpL5A0HIkFwsL56eye9Ofquj71AoWeIxs3A/GYssjGoDQnU
rG3GUBFNuTSo5ulPSe43vJ3naTZZBffQXI8bW+2+dIAoExApu/jqH+ETfERhRQMS
4N8u88jxYTdi3WCOjhGpRjnXm9Wtwgq91wsvAAh+fv6b03FH1EZKgEDHAoGBAPmp
bEYK8QWg4AKK6e/EQhZW9su4Sdb38U4wQTyTvlDN7Bc+ZYvXeOlyBxdHDiEWC+XL
wHtrOlqQ+U9nCfC4lrJbGbVmrQ4mSwVhLGPQz2zntvxw8jQwZx+K4OFs4JFqHhWc
khpz21VGxWsJ3Jix6GoDKtz03IomcDpr9lxUZFDNAoGBAKJnMYz6qu28kAv4cyAk
Hcu0iHjasfw+bUXdaS7R5CIt7Rr+s6aBuXN/Y7VQtk4YCEWeTSUWacpj77JBxjH9
gSFAuyxJKiX63gBZgiw+7SNCY8mp4OXPHEwduexD+7DnCqqSuVP3YhYr+DV5l2V9
b7DYMP43hCYaEus6X6aNgtE7AoGBAIg6GgpeDgW0MocwpVVfEXB/I0sl06SoxdKU
IgSb2UzeD+Te9ynG+QLoZVYeP2duUC+jbfPqHn0sfd0FrDbdgdzwOKbyz5rY6jaV
P1N3rLcP+JjmSEKR5rMfZHWcoyy1apUASfiFHzj41OADEYuACAFQmSLXuT7omnRG
VLcslVBBAoGBAMJgmuUGIXvS4cBDsgjrKH7mCssjBandLN2NPkNN6uhSnANxm7n8
g36Dcu4E9TEcC7qNSJ8eVeutOENerGTVJ8fUAbXhIdvjcLz0iSMkpROCNz+Zr35G
rd258VnoYyNVswrjem4jHKTm4frORBF3sx6R1i/KiFSptp941g2hYjGe
-----END RSA PRIVATE KEY-----
- GRPCPort=7777
backup_service:
build: backup_service
restart: always
environment:
- scheduler_pgs_host=postgres
- scheduler_pgs_username=admin
- scheduler_pgs_password=password
- scheduler_pgs_database=scheduler
- video_pgs_host=postgres
- video_pgs_username=admin
- video_pgs_password=password
- video_pgs_database=videoservice
- user_pgs_host=postgres
- user_pgs_username=admin
- user_pgs_password=password
- user_pgs_database=userservice
- StorageAPIID=$STORAGE_API_ID
- StorageAPIKey=$STORAGE_API_KEY
redis:
image: "redis:alpine"
restart: always
postgres:
build:
context: .
dockerfile: Dockerfile.postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
volumes:
- postgresdata:/var/lib/postgresql/data
minio:
build: minio
restart: always
ports:
- "9000:9000"
environment:
BUCKET_NAME: otomads
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./videos:/data
volumes:
postgresdata: