This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
/
docker-compose.yml
84 lines (83 loc) · 1.69 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
data:
image: redis:2.6
command: /bin/true
db:
image: redis:2.6
command: redis-server
volumes_from:
- data
base:
command: /bin/true
build: .
volumes:
- ./:/usr/src/app
- /usr/src/app/_build
compile:
command: env REBAR=rebar3 make compile
image: logplex_base
volumes_from:
- base
clean:
command: env REBAR=rebar3 make clean
image: logplex_base
volumes_from:
- base
logplex:
image: logplex_base
command: ./_build/default/rel/logplex/bin/logplex foreground
hostname: logplex
domainname: docker.local
environment:
- INSTANCE_NAME=logplex.docker.local
- LOCAL_IP=127.0.0.1
env_file:
- logplex.env
volumes_from:
- base
ports:
- "8001:8001"
- "8002:8002"
- "8601:8601"
- "6001:6001"
links:
- db
test:
image: logplex_base
command: make test
hostname: logplex
domainname: docker.local
extra_hosts:
- "server:127.0.0.1"
- "evilserver:127.0.0.1"
environment:
- INSTANCE_NAME=logplex.docker.local
- LOCAL_IP=127.0.0.1
volumes:
- ./test:/usr/src/app/test
- ./logs:/usr/src/app/logs
- ./logplex.spec:/usr/src/app/logplex.spec
volumes_from:
- base
links:
- db
# for quicker test development, allow a shell. note that you'll need
# to run `epmd &` manually before you run tests.
test_bash:
image: logplex_base
command: bash
hostname: logplex
domainname: docker.local
extra_hosts:
- "server:127.0.0.1"
- "evilserver:127.0.0.1"
environment:
- INSTANCE_NAME=logplex.docker.local
- LOCAL_IP=127.0.0.1
volumes:
- ./test:/usr/src/app/test
- ./logs:/usr/src/app/logs
- ./logplex.spec:/usr/src/app/logplex.spec
volumes_from:
- base
links:
- db