# up = build image + start service
make -f Makefile.local up
# up = build image + start service
make -f Makefile.local up service=l1_chain
# down = destroy all containers with images kept; you can not down a single service
make -f Makefile.local down
make -f Makefile.local clean
make -f Makefile.local start
make -f Makefile.local stop
equal to docker start/stop bitl1chain
(container name, not service name)
make -f Makefile.local start service=l1_chain
make -f Makefile.local stop service=l1_chain
make -f Makefile.local restart
make -f Makefile.local restart service=l1_chain
make -f Makefile.local ps
make -f Makefile.local build
make -f Makefile.local build service=l1_chain
# this will stop all services and delete all data in data/
make -f Makefile.local clean
ref: https://docs.docker.com/compose/extends/#example-use-case
docker-compose -f docker-compose.yml \
-f docker-compose.override.yml up
This feature can be used to split / extend docker-compose.yml
If you need to override some environment variables, use .env
docker-compose
will load it automatically
It is ignored by .gitignore
and .dockerignore
.
cp template.local.env .env
vim .env
Data of container such as l1_chain
l2geth
verifier
is mapped to ops/data
directory
by volume
directive in docker-compose.yaml