fixes for docker

This commit is contained in:
www
2020-09-22 13:07:38 +00:00
parent e687621e40
commit 4cc6e69e10
5 changed files with 40 additions and 7 deletions

View File

@@ -1,5 +1,19 @@
#docker stop bb2
#docker container rm bb2
docker stop fetdjango
docker container rm fetdjango
docker stop mariadb
docker container rm mariadb
docker build -t fet2020django .
docker network create fet-net
docker run --name fetdjango --network fet-net -d -p 8080:80 -v /srv/deploy_1/app/fet2020:/app fet2020django
docker run --name fetdjango --network fet-net -d -p 8080:8080 \
-v /srv/deploy_1/app/fet2020:/app fet2020django
docker run --name mariadb \
--network fet-net -d -p 3306:3306 \
-v mariadb2:/var/lib/mysql \
# -e SKIP_INNODB=yes \
-e MYSQL_DATABASE=wordpressdb \
-e MYSQL_USER=wordpressuser \
-e MYSQL_PASSWORD=hguyFt6S95dgfR4ryb \
jbergstroem/mariadb-alpine
docker exec fetdjango ./initdb