Skip to content

Instantly share code, notes, and snippets.

@alex-moreno
Created April 28, 2020 09:48
Show Gist options
  • Save alex-moreno/611bf740306044ea874932bedb312eef to your computer and use it in GitHub Desktop.
Save alex-moreno/611bf740306044ea874932bedb312eef to your computer and use it in GitHub Desktop.
Deploying your DDEV containers in digitalocean
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