mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
34 lines
742 B
YAML
34 lines
742 B
YAML
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: postgresql
|
|
labels:
|
|
name: postgresql
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
name: postgresql
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: postgresql
|
|
spec:
|
|
containers:
|
|
- name: postgresql
|
|
image: quay.io/sameersbn/postgresql:9.4-5
|
|
env:
|
|
- name: DB_USER
|
|
value: gitlab
|
|
- name: DB_PASS
|
|
value: passw0rd
|
|
- name: DB_NAME
|
|
value: gitlab_production
|
|
ports:
|
|
- containerPort: 5432
|
|
protocol: TCP
|
|
livenessProbe:
|
|
TCPSocket:
|
|
port: 5432
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 1
|