-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.06 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
version: '3'
services:
server:
build:
context: .
args:
git_ref: 'git-ref'
build_number: 'build-number'
ports:
- 3001:3001
environment:
- NODE_ENV=development
- GIT_ROOT=/git-repos
- REDIS_URL=redis://redis:6379
- LOGGING_READABLE_BY=humans
depends_on:
- redis
- worker
command: yarn start:server
volumes:
- ./git-repos:/git-repos
worker:
build:
context: .
args:
git_ref: 'git-ref'
build_number: 'build-number'
environment:
- NODE_ENV=development
- GIT_ROOT=/git-repos
- REDIS_URL=redis://redis:6379
- LOGGING_READABLE_BY=humans
depends_on:
- redis
command: yarn start:worker
volumes:
- ./git-repos:/git-repos
smoke-tests:
build: .
environment:
- smoke_tests_web_server_url=http://server:3001
- smoke_tests_remote_repo_url
command: 'echo "NO OP: please run `yarn smoke start`"'
redis:
image: redis:latest
ports:
- target: 6379
published: 6380