-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (46 loc) · 972 Bytes
/
docker-compose.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
version: "3.9"
# NOTE: I use this docker network locally sometimes
# networks:
# default:
# external:
# name: my-network
services:
node_1:
ports:
- "5555:5555"
expose:
- "5555"
environment:
MIX_ENV: "dev"
PORT: "5555"
NODE_ID: "node_1"
image: logman:latest
volumes:
- ./:/app
command: elixir --cookie cookie --sname node_1 -S mix run --no-halt
node_2:
ports:
- "5556:5556"
expose:
- "5556"
environment:
MIX_ENV: "dev"
PORT: "5556"
NODE_ID: "node_2"
image: logman:latest
volumes:
- ./:/app
command: elixir --cookie cookie --sname node_2 -S mix run --no-halt
node_3:
ports:
- "5557:5557"
expose:
- "5557"
environment:
MIX_ENV: "dev"
PORT: "5557"
NODE_ID: "node_3"
image: logman:latest
volumes:
- ./:/app
command: elixir --cookie cookie --sname node_3 -S mix run --no-halt