forked from PlaceOS/drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (47 loc) · 1.21 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
version: "3.7"
services:
# Driver test harness
drivers:
image: placeos/drivers-spec:crystal-${CRYSTAL_VERSION:-1.4.0}
restart: always
container_name: placeos-drivers
hostname: drivers
environment:
- CRYSTAL_PATH=lib:/lib/local-shards
depends_on:
- redis
- install-shards
ports:
- 127.0.0.1:8085:8080
- 127.0.0.1:4444:4444
volumes:
- ./.git:/app/.git
- ./.logs:/app/report_failures
- ./drivers:/app/drivers
- ./lib:/app/lib
- ./src:/app/src
- ./repositories:/app/repositories
environment:
- REDIS_URL=redis://redis:6379
- TZ=$TZ
- CI=${CI:-}
redis:
image: eqalpha/keydb
restart: always
hostname: redis
environment:
- TZ=$TZ
# Ensures shards are installed.
install-shards:
image: crystallang/crystal:${CRYSTAL_VERSION:-1.4.0}-alpine
restart: "no"
working_dir: /wd
command: ash -c 'shards check -q || shards install'
environment:
- SHARDS_OPTS="--ignore-crystal-version"
volumes:
- ./shard.lock:/wd/shard.lock
- ./shard.yml:/wd/shard.yml
- ./shard.override.yml:/wd/shard.override.yml
- ./.shards:/wd/.shards
- ./lib:/wd/lib