mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
removed any-sync-admin
This commit is contained in:
parent
ec15fe7d06
commit
7b57295ff3
7 changed files with 4 additions and 48 deletions
|
@ -10,7 +10,6 @@ ANY_SYNC_NODE_VERSION=prod
|
|||
ANY_SYNC_FILENODE_VERSION=prod
|
||||
ANY_SYNC_COORDINATOR_VERSION=prod
|
||||
ANY_SYNC_CONSENSUSNODE_VERSION=prod
|
||||
ANY_SYNC_ADMIN_VERSION=latest
|
||||
|
||||
MONGO_VERSION=7.0.2
|
||||
REDIS_VERSION=7.2.0-v6
|
||||
|
@ -66,7 +65,3 @@ MONGO_URL=${MONGO_CONNECT}/?replicaSet=${MONGO_REPLICA_SET}
|
|||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_URL="redis://${REDIS_HOST}:${REDIS_PORT}?dial_timeout=3&read_timeout=6s"
|
||||
|
||||
ANY_SYNC_ADMIN_HOST=0.0.0.0
|
||||
ANY_SYNC_ADMIN_PORT=5000
|
||||
EXTERNAL_ANY_SYNC_ADMIN_PORT=80
|
||||
|
|
6
Makefile
6
Makefile
|
@ -7,7 +7,7 @@ generate_env:
|
|||
generateconfig-env
|
||||
|
||||
start: generate_env
|
||||
docker compose up -d
|
||||
docker compose up --detach --remove-orphans
|
||||
@echo "Done! Upload your self-hosted network configuration file ${CURDIR}/etc/client.yml into the client app"
|
||||
@echo "See: https://doc.anytype.io/anytype-docs/data-and-security/self-hosting#switching-between-networks"
|
||||
|
||||
|
@ -21,9 +21,9 @@ pull:
|
|||
docker compose pull
|
||||
|
||||
down:
|
||||
docker compose down
|
||||
docker compose down --remove-orphans
|
||||
logs:
|
||||
docker compose logs -f
|
||||
docker compose logs --follow
|
||||
|
||||
# build with "plain" log for debug
|
||||
build:
|
||||
|
|
|
@ -15,7 +15,6 @@ Self-host for any-sync, designed for personal usage or for review and testing pu
|
|||
- [Troubleshooting](#troubleshooting)
|
||||
- [Compatible versions](#compatible-versions)
|
||||
- [Local build](#local-build)
|
||||
- [Limits web admin](#limits-web-admin)
|
||||
- [Upgrading](#upgrading)
|
||||
- [Changelog](#changelog)
|
||||
- [Contribution](#contribution)
|
||||
|
@ -151,9 +150,6 @@ If you need to create local build binaries for any-sync-*, you can do so by usin
|
|||
make restart
|
||||
```
|
||||
|
||||
## Limits web admin
|
||||
open link in browser: http://127.0.0.1:80
|
||||
|
||||
## Upgrading
|
||||
For detailed instructions of upgrading to the latest version, please see the [UPGRADE.md](./UPGRADE.md) file.
|
||||
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
services:
|
||||
any-sync-admin:
|
||||
image: localbuild-admin
|
||||
build:
|
||||
context: .
|
||||
dockerfile: repos/any-sync-admin/Dockerfile
|
||||
ssh:
|
||||
- default
|
||||
args:
|
||||
REPO_DIR: repos/any-sync-admin/
|
||||
command: python app.py
|
|
@ -220,14 +220,3 @@ services:
|
|||
limits:
|
||||
memory: 500M
|
||||
restart: on-failure
|
||||
|
||||
any-sync-admin:
|
||||
image: "ghcr.io/anyproto/any-sync-admin:${ANY_SYNC_ADMIN_VERSION}"
|
||||
depends_on:
|
||||
- redis
|
||||
- mongo-1
|
||||
ports:
|
||||
- "${EXTERNAL_ANY_SYNC_ADMIN_PORT}:${ANY_SYNC_ADMIN_PORT}"
|
||||
volumes:
|
||||
- ./etc/any-sync-admin/:/etc/any-sync-admin/
|
||||
restart: on-failure
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
listen:
|
||||
host: %ANY_SYNC_ADMIN_HOST%
|
||||
port: %ANY_SYNC_ADMIN_PORT%
|
||||
debug: True
|
||||
mongo:
|
||||
url: %MONGO_URL%
|
||||
redis:
|
||||
host: %REDIS_HOST%
|
||||
port: %REDIS_PORT%
|
|
@ -9,7 +9,7 @@ DEST_PATH="./etc"
|
|||
NETWORK_FILE="./storage/docker-generateconfig/network.yml"
|
||||
|
||||
echo "INFO: Create directories for all node types"
|
||||
for NODE_TYPE in node-1 node-2 node-3 filenode coordinator consensusnode admin; do
|
||||
for NODE_TYPE in node-1 node-2 node-3 filenode coordinator consensusnode; do
|
||||
mkdir -p "${DEST_PATH}/any-sync-${NODE_TYPE}"
|
||||
done
|
||||
|
||||
|
@ -48,9 +48,6 @@ cat "${NETWORK_FILE}" docker-generateconfig/etc/common.yml storage/docker-genera
|
|||
echo "INFO: Copy network file to coordinator directory"
|
||||
cp "storage/docker-generateconfig/nodesProcessed.yml" "${DEST_PATH}/any-sync-coordinator/network.yml"
|
||||
|
||||
echo "INFO: Copy any-sync-admin config"
|
||||
cp "docker-generateconfig/etc/admin.yml" "${DEST_PATH}/any-sync-admin/config.yml"
|
||||
|
||||
echo "INFO: Copy aws credentials config"
|
||||
cp "docker-generateconfig/etc/aws-credentials" "${DEST_PATH}/.aws/credentials"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue