2022-06-24 18:43:24 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: vaultwarden
|
|
|
|
namespace: vaultwarden
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: vaultwarden
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: vaultwarden
|
|
|
|
spec:
|
2022-09-10 01:44:23 +00:00
|
|
|
hostname: vaultwarden
|
|
|
|
subdomain: vaultwarden
|
2022-06-24 18:43:24 +00:00
|
|
|
containers:
|
|
|
|
- name: vaultwarden
|
|
|
|
image: vaultwarden/server
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
env:
|
|
|
|
- name: SIGNUPS_ALLOWED
|
|
|
|
value: "true"
|
|
|
|
- name: DATABASE_URL
|
|
|
|
value: "mysql://root:example@127.0.0.1:3306/vaultwarden"
|
|
|
|
- name: mariadb
|
|
|
|
image: mariadb
|
|
|
|
env:
|
|
|
|
- name: MARIADB_ROOT_PASSWORD
|
|
|
|
value: "example"
|
|
|
|
- name: MARIADB_DATABASE
|
|
|
|
value: "vaultwarden"
|
2022-09-23 23:04:58 +00:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: "/var/lib/mysql"
|
|
|
|
name: vaultwarden-pv
|
|
|
|
volumes:
|
|
|
|
- name: vaultwarden-pv
|
|
|
|
hostPath:
|
|
|
|
path: "/mnt/vaultwarden"
|