-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.29 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
version: '3.7'
services:
server:
user: root
build:
context: .
environment:
- SALMON_DEBUG # pass through to backend
- LOG_LEVEL
ports:
- "8421:8421"
- "8400:8400"
- "8787:8787"
depends_on: [redis]
expose:
- 8421
- 8400
- 8787
volumes:
- ".:/salmon:rw"
redis:
user: root
image: redislabs/rejson
sysctls: # https://github.com/docker-library/redis/issues/191
- net.core.somaxconn=65535
- net.core.somaxconn=511
expose:
- 6379
volumes:
- "./salmon/_out:/data:rw"
command: /bin/sh -c "chmod -v 777 /data && redis-server --loadmodule /usr/lib/redis/modules/rejson.so"
prom:
image: prom/prometheus
depends_on: [redis]
expose:
- 9090
volumes:
- ./docker/prom:/etc/prometheus
# redismonitor:
# user: root
# build: docker/redismonitor
# ports:
# - "7381:7389"
# volumes:
# - "./out:/logs:rw"
# logging:
# driver: none
# redis-server command from https://hub.docker.com/r/redislabs/rejson/dockerfile
#
# https://github.com/docker/compose/issues/3270
# also https://github.com/boot2docker/boot2docker/issues/1083#issuecomment-151380687
# To get bash on one of these machines:
# docker exec -it <containerIdOrName> bash