Developing lightweight computation at the DSG edge

docker-compose.yml 747 Bytes
Newer Older
deepthidevaki's avatar
deepthidevaki committed
1
2
3
version: "2"
services:
  antidote1:
4
     image: antidotedb/antidote:0.2.0
deepthidevaki's avatar
deepthidevaki committed
5
6
7
8
9
10
11
12
13
14
15
16
     ports:
       - "8087:8087"
     environment:
       NODE_NAME: "antidote@antidote1"
       SHORT_NAME: "true"
     cap_add:
       - NET_ADMIN
     networks:
       - interdc
       - local1

  antidote2:
17
    image: antidotedb/antidote:0.2.0
deepthidevaki's avatar
deepthidevaki committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    ports:
      - "8088:8087"
    environment:
      NODE_NAME: "antidote@antidote2"
      SHORT_NAME: "true"
    cap_add:
      - NET_ADMIN
    networks:
      - interdc
      - local2

  link:
    image: erlang:19
    volumes:
      - .:/code
    command: '/code/link.sh'
    links:
      - antidote1
      - antidote2
    cap_add:
      - NET_ADMIN
    networks:
40
      - interdc
deepthidevaki's avatar
deepthidevaki committed
41
42
43
44
45

networks:
  interdc:
  local1:
  local2: