-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (99 loc) · 2.57 KB
/
docker-compose.yml
File metadata and controls
107 lines (99 loc) · 2.57 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
otter:
build:
context: ../../
dockerfile: examples/cluster/Dockerfile
target: final
container_name: otter
ports:
# Stable host ports for E2E tests and local curl/websocat calls.
- "8084:8084" # HTTP proxy (see manifest/config_docker.yaml: proxy_port)
- "8089:8089" # WebSocket (see manifest/config_docker.yaml: websocket_port)
depends_on:
- dgraph-alpha
- dgraph-alpha2
- dgraph-alpha3
environment:
CONFIG_FILE: /app/manifest/config.yaml
volumes:
- ../../manifest/config_docker.yaml:/app/manifest/config.yaml
dgraph-zero:
image: dgraph/dgraph:v25.0.0-preview1
container_name: dgraph-zero-otter
ports:
- "5080:5080"
- "6080:6080"
volumes:
- dgraph-zero-otter:/dgraph
command: dgraph zero --my=dgraph-zero:5080
dgraph-alpha:
image: dgraph/dgraph:v25.0.0-preview1
container_name: dgraph-alpha-otter
ports:
- "8081:8081"
- "9081:9081"
volumes:
- dgraph-alpha-otter:/dgraph
depends_on:
- dgraph-zero
command: >
dgraph alpha
-p /dgraph/p1
-w /dgraph/w1
--my=dgraph-alpha1:7081
--zero=dgraph-zero:5080
--security whitelist=0.0.0.0/0
-o 1
networks:
default:
aliases:
- dgraph-alpha1
dgraph-alpha2:
image: dgraph/dgraph:v25.0.0-preview1
container_name: dgraph-alpha-otter2
ports:
- "8082"
- "9082"
volumes:
- dgraph-alpha-otter:/dgraph
depends_on:
- dgraph-zero
command: >
dgraph alpha
-p /dgraph/p2
-w /dgraph/w2
--my=dgraph-alpha2:7082
--zero=dgraph-zero:5080
--security whitelist=0.0.0.0/0
-o 2
dgraph-alpha3:
image: dgraph/dgraph:v25.0.0-preview1
container_name: dgraph-alpha-otter3
ports:
- "8083"
- "9083"
volumes:
- dgraph-alpha-otter:/dgraph
depends_on:
- dgraph-zero
command: >
dgraph alpha
-p /dgraph/p3
-w /dgraph/w3
--my=dgraph-alpha3:7083
--zero=dgraph-zero:5080
--security whitelist=0.0.0.0/0
-o 3
dgraph-ratel:
# Ratel is UI-only and does not ship a v25 preview image at the time of
# writing. Keep it behind the `ui` profile so the default stack (used by
# `make e2e` and `make rund`) does not block on a missing manifest.
# Start it explicitly with `docker compose --profile ui up dgraph-ratel`.
profiles: ["ui"]
image: dgraph/ratel:v25.0.0-preview1
restart: always
ports:
- 8000
volumes:
dgraph-zero-otter:
dgraph-alpha-otter: