apiVersion: v1
kind: Pod
metadata:
name: firefly
labels:
app: firefly
spec:
restartPolicy: Always
containers:
- name: firefly
image: docker.io/fireflyiii/core:latest
ports:
- hostPort: 8080
containerPort: 8080
env:
- name: APP_KEY
value: changeme_32char_random_string
- name: DB_CONNECTION
value: pgsql
- name: DB_HOST
value: 127.0.0.1
- name: DB_PORT
value: '5432'
- name: DB_DATABASE
value: firefly
- name: DB_USERNAME
value: firefly
- name: DB_PASSWORD
value: changeme
- name: APP_URL
value: https://firefly.example.com
- name: TRUSTED_PROXIES
value: '**'
volumeMounts:
- name: vol-0
mountPath: /var/www/html/storage/upload
securityContext:
runAsUser: ''
runAsGroup: ''
- name: postgres
image: docker.io/postgres:16-alpine
env:
- name: POSTGRES_USER
value: firefly
- name: POSTGRES_PASSWORD
value: changeme
- name: POSTGRES_DB
value: firefly
volumeMounts:
- name: vol-1
mountPath: /var/lib/postgresql/data
volumes:
- name: vol-0
hostPath:
path: ~/firefly/upload
type: Directory
- name: vol-1
hostPath:
path: ~/firefly/postgres
type: Directory
Log in to leave a comment.
Login
No comments yet. Be the first!