forked from fishjam-dev/fishjam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dns.yaml
56 lines (52 loc) · 1.08 KB
/
docker-compose-dns.yaml
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: "3"
x-fishjam-template: &fishjam-template
build: .
environment: &fishjam-environment
FJ_SERVER_API_TOKEN: "development"
FJ_DIST_ENABLED: "true"
FJ_DIST_MODE: "name"
FJ_DIST_STRATEGY_NAME: "DNS"
restart: on-failure
services:
test:
image: membraneframeworklabs/docker_membrane:latest
command:
- sh
- -c
- |
cd app/
mix deps.get
MIX_ENV=ci mix test --only cluster
volumes:
- .:/app
- /app/_build
- /app/deps
depends_on:
- app1
- app2
app1:
<<: *fishjam-template
environment:
<<: *fishjam-environment
FJ_HOST: "localhost:4001"
FJ_PORT: 4001
FJ_DIST_QUERY: app.dns-network
ports:
- 4001:4001
networks:
default:
aliases:
- app.dns-network
app2:
<<: *fishjam-template
environment:
<<: *fishjam-environment
FJ_HOST: "localhost:4002"
FJ_PORT: 4002
FJ_DIST_QUERY: app.dns-network
ports:
- 4002:4002
networks:
default:
aliases:
- app.dns-network