Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Postgres Image to 13.7 #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docker-compose-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ services:
- postgres
volumes:
- ./keys:/root/.ssh

db-connector:
build:
context: ./
Expand Down Expand Up @@ -86,7 +86,7 @@ services:
- ssh:/retool_backend/autogen_ssh_keys
- ./keys:/retool_backend/keys
restart: on-failure

workflows-worker:
build:
context: ./
Expand All @@ -110,7 +110,7 @@ services:

# Retool's storage database. See these docs to migrate to an externally hosted database: https://docs.retool.com/docs/configuring-retools-storage-database
postgres:
image: 'postgres:11.13'
image: 'postgres:13.7'
env_file: docker.env
networks:
- backend-network
Expand All @@ -120,7 +120,7 @@ services:
- data:/var/lib/postgresql/data

retooldb-postgres:
image: "postgres:14.3"
image: 'postgres:14.3'
env_file: retooldb.env
networks:
- backend-network
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- postgres
volumes:
- ./keys:/root/.ssh

db-connector:
build:
context: ./
Expand Down Expand Up @@ -80,7 +80,7 @@ services:

# Retool's storage database. See these docs to migrate to an externally hosted database: https://docs.retool.com/docs/configuring-retools-storage-database
postgres:
image: 'postgres:11.13'
image: 'postgres:13.7'
env_file: docker.env
networks:
- backend-network
Expand All @@ -89,7 +89,7 @@ services:
- data:/var/lib/postgresql/data

retooldb-postgres:
image: "postgres:14.3"
image: 'postgres:14.3'
env_file: retooldb.env
networks:
- backend-network
Expand Down
58 changes: 29 additions & 29 deletions kubernetes/retool-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ metadata:
name: postgres-pvc
spec:
accessModes:
- ReadWriteOnce
- ReadWriteOnce
resources:
requests:
storage: 60Gi

---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -31,32 +31,32 @@ spec:
app: postgres
spec:
containers:
- env:
- name: POSTGRES_DB
value: hammerhead_production
- name: POSTGRES_HOST
value: postgres
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_USER
value: retool_internal_user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: retoolsecrets
key: postgres_password
name: postgres
image: postgres:11.13
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
subPath: postgres
name: postgres-pv
- env:
- name: POSTGRES_DB
value: hammerhead_production
- name: POSTGRES_HOST
value: postgres
- name: POSTGRES_PORT
value: '5432'
- name: POSTGRES_USER
value: retool_internal_user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: retoolsecrets
key: postgres_password
name: postgres
image: postgres:13.7
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
subPath: postgres
name: postgres-pv
restartPolicy: Always
volumes:
- name: postgres-pv
persistentVolumeClaim:
claimName: postgres-pvc
- name: postgres-pv
persistentVolumeClaim:
claimName: postgres-pvc
---
apiVersion: v1
kind: Service
Expand All @@ -67,8 +67,8 @@ metadata:
spec:
clusterIP: None
ports:
- name: headless
port: 55555
targetPort: 0
- name: headless
port: 55555
targetPort: 0
selector:
app: postgres
58 changes: 29 additions & 29 deletions kubernetes_workflows/retool-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ metadata:
name: postgres-pvc
spec:
accessModes:
- ReadWriteOnce
- ReadWriteOnce
resources:
requests:
storage: 60Gi

---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -31,32 +31,32 @@ spec:
app: postgres
spec:
containers:
- env:
- name: POSTGRES_DB
value: hammerhead_production
- name: POSTGRES_HOST
value: postgres
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_USER
value: retool_internal_user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: retoolsecrets
key: postgres_password
name: postgres
image: postgres:11.13
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
subPath: postgres
name: postgres-pv
- env:
- name: POSTGRES_DB
value: hammerhead_production
- name: POSTGRES_HOST
value: postgres
- name: POSTGRES_PORT
value: '5432'
- name: POSTGRES_USER
value: retool_internal_user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: retoolsecrets
key: postgres_password
name: postgres
image: postgres:13.7
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
subPath: postgres
name: postgres-pv
restartPolicy: Always
volumes:
- name: postgres-pv
persistentVolumeClaim:
claimName: postgres-pvc
- name: postgres-pv
persistentVolumeClaim:
claimName: postgres-pvc
---
apiVersion: v1
kind: Service
Expand All @@ -67,8 +67,8 @@ metadata:
spec:
clusterIP: None
ports:
- name: headless
port: 55555
targetPort: 0
- name: headless
port: 55555
targetPort: 0
selector:
app: postgres