diff --git a/README.md b/README.md index 3bc6675..2f31913 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ + +* podman pod create --publish 8080:80,3306:3306 --userns keep-id:uid=1000,gid=1000 --userns keep-id:uid=33,gid=33 froxlor +* podman volume create froxlor-mariadb + + +* podman run --restart=always --replace --name=froxlor-nginx-php -v /home/do/git/php/Froxlor:/app -v /home/do/git/php/Froxlor-podman/nginx.conf:/etc/nginx/nginx.conf --pod=froxlor localhost/php-nginx-kmmportal:latest +* podman run --restart=always --replace --name=froxlor-mariadb --pod=froxlor -e MARIADB_ROOT_PASSWORD=rootpW -v /home/do/git/php/Froxlor-podman/mariadb.d:/etc/mysql/conf.d -v froxlor-mariadb:/var/lib/mysql mariadb:latest + + + + + + + + + + + + + "podman", "create", "--name=froxlor-mariadb", diff --git a/pod.yaml b/pod.yaml new file mode 100644 index 0000000..1a7de0e --- /dev/null +++ b/pod.yaml @@ -0,0 +1,63 @@ +# Save the output of this file and use kubectl create -f to import +# it into Kubernetes. +# +# Created with podman-4.7.2 +apiVersion: v1 +kind: Pod +metadata: + creationTimestamp: "2023-12-06T16:18:35Z" + labels: + app: froxlor + name: froxlor +spec: + containers: + - args: + - supervisord + image: localhost/php-nginx-kmmportal:latest + name: froxlor-nginx-php + ports: + - containerPort: 3306 + hostPort: 3306 + - containerPort: 80 + hostPort: 8080 + securityContext: + runAsGroup: 999 + runAsUser: 999 + volumeMounts: + - mountPath: /app + name: home-do-git-php-Froxlor-host-0 + - mountPath: /etc/nginx/nginx.conf + name: home-do-git-php-Froxlor-podman-nginx.conf-host-1 + - args: + - mariadbd + env: + - name: MARIADB_ROOT_PASSWORD + value: rootpW + image: docker.io/library/mariadb:latest + name: froxlor-mariadb + securityContext: + runAsGroup: 999 + runAsUser: 999 + volumeMounts: + - mountPath: /etc/mysql/conf.d + name: home-do-git-php-Froxlor-podman-mariadb.d-host-0 + - mountPath: /var/lib/mysql + name: froxlor-mariadb-pvc + hostUsers: false + volumes: + - hostPath: + path: /home/do/git/php/Froxlor-podman/nginx.conf + type: File + name: home-do-git-php-Froxlor-podman-nginx.conf-host-1 + - hostPath: + path: /home/do/git/php/Froxlor-podman/mariadb.d + type: Directory + name: home-do-git-php-Froxlor-podman-mariadb.d-host-0 + - name: froxlor-mariadb-pvc + persistentVolumeClaim: + claimName: froxlor-mariadb + - hostPath: + path: /home/do/git/php/Froxlor + type: Directory + name: home-do-git-php-Froxlor-host-0 +