mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-07-25 01:20:26 +00:00
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: postgresql
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
name: postgresql
|
|
template:
|
|
metadata:
|
|
name: postgresql
|
|
labels:
|
|
name: postgresql
|
|
spec:
|
|
containers:
|
|
- name: postgresql
|
|
image: kkimurak/sameersbn-postgresql:16
|
|
env:
|
|
- name: DB_USER
|
|
value: gitlab
|
|
- name: DB_PASS
|
|
value: passw0rd
|
|
- name: DB_NAME
|
|
value: gitlab_production
|
|
- name: DB_EXTENSION
|
|
value: pg_trgm
|
|
ports:
|
|
- name: postgres
|
|
containerPort: 5432
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql
|
|
name: data
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- pg_isready
|
|
- -h
|
|
- localhost
|
|
- -U
|
|
- postgres
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- pg_isready
|
|
- -h
|
|
- localhost
|
|
- -U
|
|
- postgres
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 1
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|