-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
42 lines (38 loc) · 957 Bytes
/
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
services:
node-1:
build: .
ports:
- "8090:8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.distributor.rule=Host(`distributor.stanrunge.dev`)"
- "traefik.http.routers.distributor.entrypoints=web,websecure"
- "traefik.http.routers.distributor.tls.certresolver=myresolver"
- "traefik.http.services.distributor.loadbalancer.server.port=8080"
restart: unless-stopped
networks:
distributor_net:
ipv4_address: 172.16.238.10
traefik_net:
node-2:
build: .
restart: unless-stopped
networks:
distributor_net:
ipv4_address: 172.16.238.11
traefik_net:
node-3:
build: .
restart: unless-stopped
networks:
distributor_net:
ipv4_address: 172.16.238.12
traefik_net:
networks:
distributor_net:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"
traefik_net:
external: true