-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.template.yml
74 lines (69 loc) · 1.57 KB
/
docker-compose.template.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
version: "2"
services:
management:
image: ghcr.io/apriorit/beegfs-demo-management
hostname: node01
networks:
beegfs:
aliases:
- node01
- management
ports:
- "8008:8008"
- "8008:8008/udp"
metadata:
image: ghcr.io/apriorit/beegfs-demo-metadata
hostname: node02
networks:
beegfs:
aliases:
- node02
- metadata
environment:
METADATA_SERVICE_ID: 2
ports:
- "8005:8005"
- "8005:8005/udp"
depends_on:
- management
storage1:
image: ghcr.io/apriorit/beegfs-demo-storage
hostname: node03
networks:
beegfs:
aliases:
- node03
- storage1
ports:
- "8003:8003"
- "8003:8003/udp"
volumes:
- ~/beegfs_storage1:/data
depends_on:
- management
storage2:
image: ghcr.io/apriorit/beegfs-demo-storage
hostname: node04
networks:
beegfs:
aliases:
- node04
- storage2
ports:
- "8003:8003"
- "8003:8003/udp"
volumes:
- ~/beegfs_storage2:/data
depends_on:
- management
networks:
beegfs:
driver: macvlan
driver_opts:
parent: # interface name, for example: ens33
ipam:
# macvlan can't use DHCP so we have provide network configuration manually
config:
- subnet: # interface subnet, for example: "192.168.1.0/24"
ip_range: # ip range assigned to the services, for example: "192.168.1.64/30"
gateway: # ip address of the gateway, for example: "192.168.1.1"