-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpodman-pod.yml
64 lines (64 loc) · 1.42 KB
/
podman-pod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-4.6.1
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2023-09-22T05:54:54Z"
labels:
app: Dockerized-Full-Stack-Template
name: Dockerized-Full-Stack-Template
spec:
containers:
- args:
- mongod
image: docker.io/library/mongo:4.0-xenial
name: db
ports:
- containerPort: 27017
hostPort: 27017
volumeMounts:
- mountPath: /data/configdb
name: vidlyConfig-pvc
- mountPath: /data/db
name: vidly-pvc
- args:
- ./docker-entrypoint.sh
env:
- name: DB_URL
value: mongodb://db/vidly
image: localhost/backend:latest
name: backend
ports:
- containerPort: 3001
hostPort: 3001
volumeMounts:
- mountPath: /app
name: backend
- args:
- npm
- start
image: localhost/frontend:latest
name: frontend
ports:
- containerPort: 3000
hostPort: 3000
volumeMounts:
- mountPath: /app
name: frontend
volumes:
- name: vidlyConfig-pvc
persistentVolumeClaim:
claimName: vidlyConfig
- name: vidly-pvc
persistentVolumeClaim:
claimName: vidly
- name: backend
hostPath:
path: /home/test/Dockerized-Full-Stack-Template/backend
type: Directory
- name: frontend
hostPath:
path: /home/test/Dockerized-Full-Stack-Template/frontend
type: Directory