Skip to content

Commit

Permalink
dgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Dec 15, 2023
1 parent cab8fa5 commit 0ebea5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
16 changes: 5 additions & 11 deletions apps/dgraph/.env
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# version tags refer to: https://hub.docker.com/r/dgraph/dgraph/
W9_POWER_PASSWORD=UGz0IARz117ssO%
DB_DGRAPH_VERSION=latest
W9_REPO=dgraph/dgraph
W9_DIST=community
# version tags refer to: https://hub.docker.com/r/dgraph/dgraph/
W9_POWER_PASSWORD=UGz0IARz117ssO%

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=dgraph
W9_ZERO_1_PORT=5080
W9_ZERO_1_PORT_SET=5080
W9_ZERO_2_PORT=6080
W9_ZERO_2_PORT_SET=6080
W9_ALPHA_1_PORT=8080
W9_ALPHA_1_PORT_SET=8080
W9_ALPHA_2_PORT=9080
W9_ALPHA_2_PORT_SET=9080
W9_RATEL_PORT=8000
W9_RATEL_PORT_SET=8000
W9_HTTP_PORT=8000
W9_HTTP_PORT_SET=8000
W9_URL=appname.example.com
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####

VOLUMES_PATH_PREFIX=./volumes
#### --------------------------------------------------------------------------------------- ####
10 changes: 5 additions & 5 deletions apps/dgraph/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ services:
volumes:
- dgraph:/dgraph
ports:
- ${W9_ZERO_1_PORT_SET}:${W9_ZERO_1_PORT}
- ${W9_ZERO_2_PORT_SET}:${W9_ZERO_2_PORT}
- ${W9_ZERO_1_PORT_SET}:5080
- ${W9_ZERO_2_PORT_SET}:6080
restart: on-failure
command: dgraph zero --my=zero:5080
env_file: .env
Expand All @@ -22,8 +22,8 @@ services:
volumes:
- dgraph:/dgraph
ports:
- ${W9_ALPHA_1_PORT_SET}:${W9_ALPHA_1_PORT}
- ${W9_ALPHA_2_PORT_SET}:${W9_ALPHA_2_PORT}
- ${W9_ALPHA_1_PORT_SET}:8080
- ${W9_ALPHA_2_PORT_SET}:9080
restart: on-failure
command: dgraph alpha --my=alpha:7080 --zero=zero:5080
env_file: .env
Expand All @@ -38,7 +38,7 @@ services:
volume:
nocopy: true
ports:
- ${W9_RATEL_PORT_SET}:${W9_RATEL_PORT}
- ${W9_HTTP_PORT_SET}:8000
command: dgraph-ratel
env_file: .env

Expand Down
1 change: 1 addition & 0 deletions apps/dgraph/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{
"dist": "community",
"version": [
"v23.1.0",
"latest"
]
}
Expand Down

0 comments on commit 0ebea5a

Please sign in to comment.