-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.09 KB
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
version: "3.7"
services:
redis:
image: redislabs/redistimeseries:latest
ports:
- "6379:6379"
worker:
build:
context: .
dockerfile: Dockerfile.worker
command: ./worker
container_name: worker
working_dir: /root/
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_POOL_SIZE: 100
REDIS_TIMEOUT: 0.5
depends_on:
- redis
simulator:
build:
context: .
dockerfile: Dockerfile.simulator
command: ./simulator
container_name: simulator
working_dir: /root/
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_POOL_SIZE: 100
REDIS_TIMEOUT: 0.5
depends_on:
- redis
web:
build:
context: .
dockerfile: Dockerfile
command: ./start
container_name: web
working_dir: /root/
environment:
CRYSTAL_ENV: development
HOST: 0.0.0.0
PORT: 4000
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_POOL_SIZE: 100
REDIS_TIMEOUT: 0.5
ports:
- "4000:4000"
depends_on:
- redis
- worker
- simulator