11/24/2023 0 Comments Wordpress docker mysqlDockerfile - Build Docker images automatically I - FROM, MAINTAINER, and build context.Linking containers and volume for datastore.File sharing between host and container (docker run -d -p -v).Docker Networks - Bridge Driver Network.More on docker run command (docker run -it, docker run -rm, etc.).Docker image and container via docker commands (search, pull, run, ps, restart, attach, and rm). ![]() ![]() Working with Docker images : brief introduction.Nginx image - share/copy files, Dockerfile.|-|-|-|-|Įcause you are using a Docker driver on darwin, the terminal needs to be open to run it.Ĭopy the IP address, and load the page in a browser to view the site. To get the IP Address for the WordPress Service: $ kubectl describe secrets mysql-pass-km99f6b4f8 Replicaset.apps/wordpress-mysql-6fffffbdfc 1 1 1 46sĭefault-token-kz545 kubernetes.io/service-account-token 3 14h Replicaset.apps/wordpress-6bcdc557df 1 1 1 46s Service/wordpress-mysql ClusterIP None 3306/TCP 47sĭeployment.apps/wordpress-mysql 1/1 1 1 46s Service/kubernetes ClusterIP 10.96.0.1 443/TCP 14h NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE Pod/wordpress-mysql-6fffffbdfc-xzckl 1/1 Running 0 46s Pod/wordpress-6bcdc557df-xm4qn 1/1 Running 0 46s Persistentvolumeclaim/wp-pv-claim created Persistentvolumeclaim/mysql-pv-claim created The kustomization.yaml contains all the resources for deploying a WordPress site and a MySQL database including a Secret generator for the MySQL password we want to use. We need the following three yaml files (kustomization.yaml, mysql-deployment.yaml, and wordpress-deployment.yaml):ĪpiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 This post is based on Deploying WordPress and MySQL with Persistent Volumes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |