Skip to content

Instantly share code, notes, and snippets.

@juanbrny
Last active August 10, 2020 13:07
Show Gist options
  • Save juanbrny/63ec8e640c8284c1191333277e2067f7 to your computer and use it in GitHub Desktop.
Save juanbrny/63ec8e640c8284c1191333277e2067f7 to your computer and use it in GitHub Desktop.
NextCloud Pod definition for Podman
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2020-03-28T17:03:40Z"
labels:
app: nextcloud
name: nextcloud
spec:
containers:
- name: nextcloud_app
image: docker.io/library/nextcloud
env:
- name: MYSQL_HOST
value: nextcloud
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: file.brainy.es
- name: MYSQL_PASSWORD
value: supersecure
- name: MYSQL_DATABASE
value: nextcloud
- name: MYSQL_USER
value: nextcloud
- name: REDIS_HOST
value: nextcloud
ports:
- containerPort: 80
hostPort: 5678
protocol: TCP
volumeMounts:
- mountPath: /var/www/html
name: nextcloud
- name: nextcloud_cron
image: docker.io/library/nextcloud
command: ["/cron.sh"]
volumeMounts:
- mountPath: /var/www/html
name: nextcloud
restartPolicy: Always
- name: nextcloud_busybox
image: busybox
command: [ "sleep","36000" ]
- name: nextcloud_redis
image: redis
restartPolicy: Always
- name: nextcloud_mariadb
image: docker.io/library/mariadb:latest
command: ["mysqld", "--transaction-isolation=READ-COMMITTED", "--binlog-format=ROW"]
env:
- name: MYSQL_PASSWORD
value: supersecure
- name: MYSQL_DATABASE
value: nextcloud
- name: MYSQL_USER
value: nextcloud
- name: MYSQL_ROOT_PASSWORD
value: supersecure
- name: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- name: TERM
value: xterm
- name: MARIADB_MAJOR
value: "10.4"
- name: GOSU_VERSION
value: "1.10"
- name: MARIADB_VERSION
value: 1:10.4.12+maria~bionic
- name: container
value: podman
- name: HOSTNAME
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
seLinuxOptions: {}
stdin: true
tty: true
workingDir: /
volumeMounts:
- mountPath: /var/lib/mysql
name: db
volumes:
- name: db
hostPath:
# directory location on host
path: /var/lib/containers/storage/volumes/db
# this field is optional
type: Directory
- name: nextcloud
hostPath:
# directory location on host
path: /var/lib/containers/storage/volumes/nextcloudnew
# this field is optional
type: Directory
status: {}
@juanbrny
Copy link
Author

Pending review Redis container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment