Updated repository to the new configuration.
This commit is contained in:
parent
25dde6a119
commit
1945f193ea
31 changed files with 766 additions and 866 deletions
73
pods/notes/notes-pod.yml
Normal file
73
pods/notes/notes-pod.yml
Normal file
|
@ -0,0 +1,73 @@
|
|||
apiversion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: notes-pod
|
||||
annotations:
|
||||
io.podman.annotations.infra.name: notes-pod-infra
|
||||
spec:
|
||||
containers:
|
||||
- name: hedgedoc
|
||||
image: quay.io/hedgedoc/hedgedoc:alpine
|
||||
env:
|
||||
- name: CMD_DB_URL
|
||||
valuefrom:
|
||||
secretkeyref:
|
||||
name: notes-secrets
|
||||
key: postgres-url
|
||||
- name: CMD_ALLOW_EMAIL_REGISTER
|
||||
value: true
|
||||
- name: CMD_DOMAIN
|
||||
value: "notes.bijl.us"
|
||||
- name: CMD_PROTOCOL_USESSL
|
||||
value: true
|
||||
- name: CMD_URL_ADDPORT
|
||||
value: false
|
||||
- name: NODE_ENV
|
||||
value: production
|
||||
- name: CMD_IMAGE_UPLOAD_TYPE
|
||||
value: filesystem
|
||||
- name: UPLOADS_MODE
|
||||
value: 0700
|
||||
ports:
|
||||
- containerport: 3000
|
||||
hostport: 4080
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- mountpath: /hedgedoc/public/uploads
|
||||
name: hedgedoc-uploads
|
||||
- mountpath: /etc/localtime
|
||||
name: localtime
|
||||
readonly: true
|
||||
|
||||
- name: postgres
|
||||
image: docker.io/library/postgres:16-alpine
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
valuefrom:
|
||||
secretkeyref:
|
||||
name: notes-secrets
|
||||
key: postgres-password
|
||||
volumemounts:
|
||||
- mountpath: /dump
|
||||
name: postgres-dump
|
||||
- mountpath: /var/lib/postgresql/data
|
||||
name: postgres-data
|
||||
- mountpath: /etc/localtime
|
||||
name: localtime
|
||||
readonly: true
|
||||
|
||||
volumes:
|
||||
- persistentvolumeclaim:
|
||||
claimname: notes-pod-hedgedoc-uploads
|
||||
name: hedgedoc-uploads
|
||||
- hostpath:
|
||||
path: <home>/.dump/notes
|
||||
type: Directory
|
||||
name: postgres-dump
|
||||
- persistentvolumeclaim:
|
||||
claimname: notes-pod-postgres-data
|
||||
name: postgres-data
|
||||
- hostPath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
name: localtime
|
Loading…
Add table
Add a link
Reference in a new issue