зеркало из https://github.com/nextcloud/container.git
32 строки
649 B
YAML
32 строки
649 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: postgresql
|
|
labels:
|
|
name: postgresql
|
|
spec:
|
|
containers:
|
|
- name: postgresql
|
|
image: sameersbn/postgresql:9.5-4
|
|
env:
|
|
- name: DB_USER
|
|
value: nextcloud
|
|
- name: DB_PASS
|
|
value: password
|
|
- name: DB_NAME
|
|
value: nextcloud_db
|
|
ports:
|
|
- containerPort: 5432
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql
|
|
name: data
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 5432
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 5
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|