-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.47 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"
x-redis-client-env: &redis-client-env
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
x-build-client-env: &build-client-env
PLACEOS_BUILD_HOST: ${PLACEOS_BUILD_HOST:-build}
PLACEOS_BUILD_PORT: ${PLACEOS_BUILD_PORT:-3000}
volumes:
repositories:
drivers:
services:
test:
image: placeos/service-spec-runner:${CRYSTAL_VERSION:-latest}
volumes:
- ${PWD}/lib:/app/lib:rw
- ${PWD}/bin:/app/bin:rw
- ${PWD}/coverage:/app/coverage
- ${PWD}/shard.lock:/app/shard.lock
- ${PWD}/shard.yml:/app/shard.yml.input
- ${PWD}/shard.override.yml:/app/shard.override.yml
- ${PWD}/spec:/app/spec
- ${PWD}/src:/app/src
- ${PWD}:/app/repositories/local
- type: volume
source: repositories
target: /app/repositories
depends_on:
- redis
- build
environment:
# Service Hosts
<< : [*redis-client-env,*build-client-env]
# Environment
GITHUB_ACTION: ${GITHUB_ACTION:-}
build:
image: placeos/build:${PLACE_BUILD_TAG:-nightly}
restart: always
hostname: build
volumes:
- ${PWD}:/app/repositories/local
- type: volume
source: drivers
target: /app/bin/drivers
- type: volume
source: repositories
target: /app/repositories
environment:
PLACEOS_BUILD_LOCAL: "true"
PLACEOS_ENABLE_TRACE: "true"
BUILD_SERVICE_DISABLED: "true"
redis:
image: eqalpha/keydb
restart: always
hostname: redis