1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 14:07:02 +09:00

add specific versions support

This commit is contained in:
Grigory Efimov 2023-03-20 17:58:22 +00:00
parent b00f7343bc
commit bdcbc283ea
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939
3 changed files with 18 additions and 5 deletions

4
.env
View file

@ -1,2 +1,6 @@
AWS_ACCESS_KEY_ID=testid AWS_ACCESS_KEY_ID=testid
AWS_SECRET_ACCESS_KEY=testkey AWS_SECRET_ACCESS_KEY=testkey
ANY_SYNC_NODE_VERSION=latest
ANY_SYNC_FILENODE_VERSION=latest
ANY_SYNC_COORDINATOR_VERSION=latest

View file

@ -9,3 +9,12 @@
* stop stand: ```make stop``` * stop stand: ```make stop```
* clean unused docker objects: ```make clean``` * clean unused docker objects: ```make clean```
* clean tmp files for any-sync-node and s3: ```cleanTmpFiles``` * clean tmp files for any-sync-node and s3: ```cleanTmpFiles```
* show logs:
```
docker-compose logs -f any-sync-node
docker-compose logs -f any-sync-filenode
docker-compose logs -f
```
## set specific versions
use file .env

View file

@ -11,7 +11,7 @@ services:
volumes: volumes:
- ./s3_root:/s3_root - ./s3_root:/s3_root
any-sync-node-1: any-sync-node-1:
image: "ghcr.io/anytypeio/any-sync-node:latest" image: "ghcr.io/anytypeio/any-sync-node:${ANY_SYNC_NODE_VERSION}"
ports: ports:
- 4431:443 - 4431:443
- 8081:8080 - 8081:8080
@ -25,7 +25,7 @@ services:
memory: 500M memory: 500M
command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"] command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"]
any-sync-node-2: any-sync-node-2:
image: "ghcr.io/anytypeio/any-sync-node:latest" image: "ghcr.io/anytypeio/any-sync-node:${ANY_SYNC_NODE_VERSION}"
ports: ports:
- 4432:443 - 4432:443
- 8082:8080 - 8082:8080
@ -39,7 +39,7 @@ services:
memory: 500M memory: 500M
command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"] command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"]
any-sync-node-3: any-sync-node-3:
image: "ghcr.io/anytypeio/any-sync-node:latest" image: "ghcr.io/anytypeio/any-sync-node:${ANY_SYNC_NODE_VERSION}"
ports: ports:
- 4433:443 - 4433:443
- 8083:8080 - 8083:8080
@ -53,7 +53,7 @@ services:
memory: 500M memory: 500M
command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"] command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"]
any-sync-filenode: any-sync-filenode:
image: "ghcr.io/anytypeio/any-sync-filenode:latest" image: "ghcr.io/anytypeio/any-sync-filenode:${ANY_SYNC_FILENODE_VERSION}"
ports: ports:
- 4434:443 - 4434:443
- 8004:8000 - 8004:8000
@ -66,7 +66,7 @@ services:
memory: 500M memory: 500M
command: ["/any-sync-filenode", "-c", "/etc/any-sync-filenode/config.yml"] command: ["/any-sync-filenode", "-c", "/etc/any-sync-filenode/config.yml"]
any-sync-coordinator: any-sync-coordinator:
image: "ghcr.io/anytypeio/any-sync-coordinator:latest" image: "ghcr.io/anytypeio/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
ports: ports:
- 4435:443 - 4435:443
- 8005:8000 - 8005:8000