Answer the question
In order to leave comments, you need to log in
How to run cron inside docker container with php-fpm?
There is a docker container, php-fpm and a Yii application are spinning in it.
This application has about a dozen Yii commands that are executed via cron.
How to shove cron into this container and make it work?!
Any real experience? Without crutches and prostheses?
All methods from Stackowerflow have already been tried.
PS Why didn't the docker developers provide for human work with cron inside the docker container, is there an official version? :)
Answer the question
In order to leave comments, you need to log in
For example, by external means
https://habrahabr.ru/company/flant/blog/326414/
apiVersion: enterprises.upmc.com/v1
kind: ElasticsearchCluster
metadata:
name: example-es-cluster
spec:
client-node-replicas: 3
master-node-replicas: 2
data-node-replicas: 3
zones:
- us-east-1c
- us-east-1d
- us-east-1e
data-volume-size: 10Gi
java-options: "-Xms1024m -Xmx1024m"
snapshot:
scheduler-enabled: true
bucket-name: elasticsnapshots99
cron-schedule: "@every 2m"
storage:
type: gp2
storage-class-provisioner: kubernetes.io/aws-ebs
The official version is that containers are not virtualization for multiple processes, but isolation of a single process
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question