-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1014 Bytes
/
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
---
version: "2"
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
# EXPOSED_PORT is the public port on which yarnitor listens
# You must set it when you run docker compose.
- "$EXPOSED_PORT:8080"
depends_on:
- redis
- background
links:
- redis
command: gunicorn -b 0.0.0.0:8080 --access-logfile - -w 5 yarnitor:app
environment:
REDIS_ENDPOINT: "redis:6379"
YARN_POLL_SLEEP: 15
restart: always
background:
build:
context: .
dockerfile: Dockerfile
depends_on:
- redis
links:
- redis
command: yarnitor-background-worker
environment:
REDIS_ENDPOINT: "redis:6379"
# This is the url to your yarn nodemanager. This is required to be
# present when you run docker compose.
# eg: http://yarn-application-master.mydomain:8088/
YARN_ENDPOINT:
YARN_POLL_SLEEP: 15
restart: always
redis:
image: redis:alpine
restart: always