-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
166 lines (151 loc) · 4.01 KB
/
docker-compose.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
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
164
165
166
version: "3.6"
services:
auth-app:
image: ${AUTH_IMAGE_APP}
ports:
- ${AUTH_APP_PORT}:80
environment:
SKIP_COMPOSER: 1
SKIP_CHOWN: 1
DB_CONNECTION: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: auth
DB_USERNAME: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
MAIL_DRIVER: ${MAIL_DRIVER}
MAILGUN_DOMAIN: ${MAILGUN_DOMAIN}
MAILGUN_SECRET: ${MAILGUN_SECRET}
links:
- postgres
auth-redis:
image: ${IMAGE_REDIS}
position-app:
image: ${POSITION_IMAGE_APP}
ports:
- ${POSITION_APP_PORT}:80
environment:
SKIP_COMPOSER: 1
SKIP_CHOWN: 1
DB_CONNECTION: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: position
DB_USERNAME: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
links:
- postgres
position-redis:
image: ${IMAGE_REDIS}
billingapi-app:
image: ${BILLINGAPI_IMAGE_APP}
ports:
- ${BILLINGAPI_APP_PORT}:80
environment:
DBHOST: postgres
POSTGRESQLHANGFIRE_DBNAME: ${POSTGRESQLHANGFIRE_DBNAME}
POSTGRESQLHANGFIRE_USER: ${POSTGRESQLHANGFIRE_USER}
POSTGRESQLHANGFIRE_PASSWORD: ${POSTGRESQLHANGFIRE_PASSWORD}
POSTGRESQLBILLING_DBNAME: ${POSTGRESQLBILLING_DBNAME}
POSTGRESQLBILLING_USER: ${WEB_BACKEND_DBUSER}
POSTGRESQLBILLING_PASSWORD: ${WEB_BACKEND_DBPASSWORD}
links:
- postgres
gateway-app:
image: ${GATEWAY_IMAGE_APP}
ports:
- ${GATEWAY_APP_PORT}:80
environment:
GATEWAY_PORT: 80
AUTH_HOST: http://auth-app
POSITION_HOST: http://position-app
PUSH_HOST: http://push.evarun.ru
BILLING_HOST: http://billingapi-app
MODEL_ENGINE_HOST: http://model-engine.evarun.ru
MODELS_MANAGER_HOST: http://models-manager.evarun.ru
REDIS_HOST: gateway-redis:6379
restart: on-failure
links:
- auth-app
- position-app
- push-app
- model-engine-app
- models-manager-app
gateway-redis:
image: ${IMAGE_REDIS}
postgres:
image: ${IMAGE_POSTGRES}
restart: always
volumes:
- eva-platform-postgres:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT}:5432
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_ROOT_PASSWORD: ${POSTGRES_ROOT_PASSWORD}
ppa:
image: ${IMAGE_PPA}
restart: always
ports:
- 7051:80
environment:
PHP_PG_ADMIN_SERVER_HOST: postgres
links:
- postgres
backup:
image: ${IMAGE_BACKUP}
environment:
APP_PORT: 80
APP_PASSWORD: ${APP_PASSWORD}
APP_CATALOG: ${APP_CATALOG}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
PGHOST: postgres
PGPORT: 5432
PGUSER: ${BACKUP_POSTGRES_USER}
PGPASSWORD: ${BACKUP_POSTGRES_PASSWORD}
restart: on-failure
links:
- postgres
flyway:
image: ${IMAGE_FLYWAY}
environment:
FLYWAY_SCHEMAS: public
FLYWAY_USER: ${POSTGRES_USER}
FLYWAY_PASSWORD: ${POSTGRES_PASSWORD}
links:
- postgres
push-app:
image: ${PUSH_IMAGE_APP}
ports:
- ${PUSH_APP_PORT}:3000
environment:
POSTGRESQL_HOST: postgres
POSTGRESQL_DATABASE: push
POSTGRESQL_USER: ${POSTGRES_USER}
POSTGRESQL_PASSWORD: ${POSTGRES_PASSWORD}
FIREBASE_SERVER_TOKEN: ${PUSH_FIREBASE_SERVER_TOKEN}
links:
- postgres
model-engine-app:
image: ${MODEL_ENGINE_APP}
ports:
- ${MODEL_ENGINE_APP_PORT}:3000
models-manager-app:
image: ${MODELS_MANAGER_APP}
ports:
- ${MODELS_MANAGER_APP_PORT}:3000
environment:
POSTGRESQL_HOST: postgres
POSTGRESQL_DATABASE: models
POSTGRESQL_USER: ${POSTGRES_USER}
POSTGRESQL_PASSWORD: ${POSTGRES_PASSWORD}
MODEL_ENGINE_URL: http://model-engine-app:3000
PUSH_URL: http://push-app:3000
ENABLE_PUBSUB: "false"
links:
- postgres
volumes:
eva-platform-postgres: