-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
113 lines (103 loc) · 2.35 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
version: '3'
networks:
net:
services:
redis:
image: redis:5.0.3-alpine
ports:
- "6379:6379"
networks:
- net
## Commenting this out because the setup is broken and is missing the config file
# prometheus:
# image: prom/prometheus
# ports:
# - "9090:9090"
# networks:
# - net
# volumes:
# - ../prometheus.yml:/etc/prometheus/prometheus.yml
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
grafana:
image: grafana/grafana
ports:
- "3000:3000"
networks:
- net
rq-metrics:
image: renku/rqmetrics:latest
container_name: rq-metrics
depends_on:
- redis
environment:
RQ_REDIS_HOST: redis
ports:
- "8765:8765"
networks:
- net
rq-dashboard:
image: eoranged/rq-dashboard:v0.6.1
container_name: rq-dashboard
depends_on:
- redis
environment:
RQ_DASHBOARD_REDIS_URL: redis://redis:6379
networks:
- net
ports:
- "9181:9181"
renku-svc:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_CORE_SERVICE: 1
networks:
- net
env_file: .env
depends_on:
- redis
- reverse-proxy
ports:
- "8081:8080"
volumes:
- ${PWD}:/code/renku
command: ["service", "api"]
labels:
- "traefik.http.routers.renku-svc.rule=PathPrefix(`/api/renku`)"
- "traefik.http.middlewares.stripprefix.stripprefix.prefixes=/api"
- "traefik.http.routers.renku-svc.middlewares=stripprefix@docker"
swagger:
image: swaggerapi/swagger-ui
networks:
- net
environment:
- BASE_URL=/api/docs
- URL=/api/renku/spec.json
labels:
- traefik.http.routers.swagger.rule=PathPrefix(`/api/docs`)
- traefik.http.services.my-service.loadbalancer.server.port=8080
renku-worker:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_CORE_SERVICE: 1
command: ["service", "worker"]
depends_on:
- redis
networks:
- net
env_file: .env
reverse-proxy:
image: traefik:v2.4
command: --api.insecure=true --providers.docker
ports:
- "81:81"
# set the UI port to something other than 8080 since that's our service already
- "8088:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- net