mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
*: migrate to Docker Compose V2
Docker Compose V1 is deprecated since June 2023, ref. https://docs.docker.com/compose/migrate/ and https://github.com/nspcc-dev/neo-bench/issues/166. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
39e0d60221
commit
cbc2f73a0c
3 changed files with 6 additions and 8 deletions
|
@ -1,5 +1,3 @@
|
|||
version: '2.4'
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: neo_go_network
|
||||
|
|
8
Makefile
8
Makefile
|
@ -131,19 +131,19 @@ env_image:
|
|||
env_up:
|
||||
@echo "=> Bootup environment"
|
||||
@echo " Docker-compose file: $(DC_FILE)"
|
||||
@docker-compose -f $(DC_FILE) up -d node_one node_two node_three node_four
|
||||
@docker compose -f $(DC_FILE) up -d node_one node_two node_three node_four
|
||||
|
||||
env_single:
|
||||
@echo "=> Bootup environment"
|
||||
@docker-compose -f $(DC_FILE) up -d node_single
|
||||
@docker compose -f $(DC_FILE) up -d node_single
|
||||
|
||||
env_down:
|
||||
@echo "=> Stop environment"
|
||||
@docker-compose -f $(DC_FILE) down
|
||||
@docker compose -f $(DC_FILE) down
|
||||
|
||||
env_restart:
|
||||
@echo "=> Stop and start environment"
|
||||
@docker-compose -f $(DC_FILE) restart
|
||||
@docker compose -f $(DC_FILE) restart
|
||||
|
||||
env_clean: env_down
|
||||
@echo "=> Cleanup environment"
|
||||
|
|
|
@ -155,7 +155,7 @@ four-node setup.
|
|||
|
||||
#### Prerequisites
|
||||
- `docker` of version >= 20.10.0
|
||||
- `docker-compose`
|
||||
- `docker compose` V2
|
||||
- `go` compiler
|
||||
|
||||
#### Instructions
|
||||
|
@ -166,7 +166,7 @@ make env_up # start containers, use "make env_single" for single CN
|
|||
```
|
||||
To monitor logs:
|
||||
```bash
|
||||
docker-compose -f .docker/docker-compose.yml logs -f
|
||||
docker compose -f .docker/docker-compose.yml logs -f
|
||||
```
|
||||
|
||||
To stop:
|
||||
|
|
Loading…
Reference in a new issue