mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
remove containers after use
This commit is contained in:
parent
66d9ecf387
commit
42f6733980
1 changed files with 4 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
# for a writefreely instance using the docker-compose.yml in this repo
|
||||
|
||||
# start database
|
||||
docker run -d --volume=writefreely_db-data:/var/lib/mysql \
|
||||
docker run --rm -d --volume=writefreely_db-data:/var/lib/mysql \
|
||||
--name=db \
|
||||
-e "MYSQL_DATABASE=writefreely" \
|
||||
-e "MYSQL_ROOT_PASSWORD=changeme" \
|
||||
|
@ -11,13 +11,12 @@ docker run -d --volume=writefreely_db-data:/var/lib/mysql \
|
|||
mariadb:latest
|
||||
|
||||
# create new asset signing keys
|
||||
docker run --volume=writefreely_web-data:/home/writefreely writeas/writefreely:latest "-gen-keys"
|
||||
docker run --rm --volume=writefreely_web-data:/home/writefreely writeas/writefreely:latest "-gen-keys"
|
||||
|
||||
# generate new configuration and initialize database
|
||||
docker run -it --volume=writefreely_web-data:/home/writefreely \
|
||||
docker run --rm -it --volume=writefreely_web-data:/home/writefreely \
|
||||
--link db:db \
|
||||
writeas/writefreely:latest "-config"
|
||||
|
||||
# clean up detached database container
|
||||
docker container stop db
|
||||
docker container rm db
|
||||
docker container stop db
|
Loading…
Reference in a new issue