Created
April 28, 2020 09:48
-
-
Save alex-moreno/611bf740306044ea874932bedb312eef to your computer and use it in GitHub Desktop.
Deploying your DDEV containers in digitalocean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: ddev-wb | |
spec: | |
selector: | |
matchLabels: | |
app: ddev | |
replicas: 1 # tells deployment to run 1 pods matching the template | |
template: | |
metadata: | |
labels: | |
app: ddev | |
spec: | |
containers: | |
- name: ddev | |
image: drud/ddev-webserver:v1.5.0 | |
ports: | |
- containerPort: 80 | |
volumeMounts: | |
- mountPath: "/var/www/html/" | |
name: wb-volume | |
subPath: "web" | |
# We'll need some things in the root folder, like vendor folder. | |
- mountPath: "/var/www/" | |
name: wb-volume | |
volumes: | |
- name: wb-volume | |
persistentVolumeClaim: | |
claimName: webserver-storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment