mirror of
https://github.com/opf/openproject-deploy.git
synced 2026-02-14 16:59:51 +00:00
49 lines
1.3 KiB
YAML
Executable File
49 lines
1.3 KiB
YAML
Executable File
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
openproject.service: cron
|
|
name: cron
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
openproject.service: cron
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
openproject.network/backend: "true"
|
|
openproject.service: cron
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- ./docker/prod/cron
|
|
env:
|
|
- name: DATABASE_URL
|
|
value: postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true
|
|
- name: IMAP_ENABLED
|
|
value: "false"
|
|
- name: OPENPROJECT_CACHE__MEMCACHE__SERVER
|
|
value: cache:11211
|
|
- name: OPENPROJECT_RAILS__RELATIVE__URL__ROOT
|
|
- name: RAILS_CACHE_STORE
|
|
value: memcache
|
|
- name: RAILS_MAX_THREADS
|
|
value: "16"
|
|
- name: RAILS_MIN_THREADS
|
|
value: "4"
|
|
image: openproject/community:12
|
|
name: cron
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /var/openproject/assets
|
|
name: opdata
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: opdata
|
|
persistentVolumeClaim:
|
|
claimName: opdata
|
|
status: {}
|