-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
57 lines (52 loc) · 1.18 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
version: '2.1'
services:
edge: # front end
build:
context: .
volumes:
- "./edge.conf:/usr/local/openresty/nginx/conf/nginx.conf"
- "./nott.html:/usr/local/openresty/nginx/index.html"
- "./src/:/lua/src/"
depends_on:
- ingest
- redis_cluster
links:
- ingest
- redis_cluster
ports:
- "8080:8080"
ingest: # back end
build:
context: .
dockerfile: Dockerfile.ingest
volumes:
- "./ingest.conf:/config/nginx.conf"
ports:
- "1935:1935"
redis_cluster: # data store
image: grokzen/redis-cluster:latest
ports:
- '7000-7005:7000-7005'
test:
command: busted -v --shuffle
environment:
- TRAVIS=true
- CI=true
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ".:/lua/"
working_dir: "/lua"
lint:
command: bash -c "luacheck -q ."
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ".:/lua/"
working_dir: "/lua"