Page MenuHomeMusing Studio

No OneTemporary

diff --git a/docker-setup.sh b/docker-setup.sh
index b7d74c5..bbb518f 100755
--- a/docker-setup.sh
+++ b/docker-setup.sh
@@ -1,23 +1,22 @@
#! /bin/bash
# this script will configure and intialize the persitent data needed
# 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" \
-p 3306:3306 \
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
\ No newline at end of file
+docker container stop db
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Sun, Apr 6, 8:29 AM (9 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3188810

Event Timeline