mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix README
This commit is contained in:
parent
0699b22137
commit
e81f2344c3
@ -6,6 +6,10 @@ services:
|
||||
volumes:
|
||||
- .:/backend
|
||||
- /backend/node_modules
|
||||
neo4j:
|
||||
ports:
|
||||
- 7687:7687
|
||||
- 7474:7474
|
||||
|
||||
networks:
|
||||
hc-network:
|
||||
|
||||
@ -2,6 +2,7 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
backend:
|
||||
image: humanconnection/backend:latest
|
||||
build: .
|
||||
networks:
|
||||
- hc-network
|
||||
@ -18,9 +19,7 @@ services:
|
||||
- MOCK=false
|
||||
|
||||
neo4j:
|
||||
ports:
|
||||
- 7687:7687
|
||||
- 7474:7474
|
||||
image: humanconnection/neo4j:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.neo4j
|
||||
|
||||
@ -5,10 +5,11 @@ First of all start minikube on your machine:
|
||||
minikube start
|
||||
```
|
||||
|
||||
Build your Docker image, using the Minikube Docker daemon:
|
||||
Build Docker images, using the Minikube Docker daemon:
|
||||
```sh
|
||||
eval $(minikube docker-env)
|
||||
docker build -t humanconnection/backend:latest .
|
||||
docker build -t humanconnection/neo4j:latest -f Dockerfile.neo4j .
|
||||
```
|
||||
|
||||
check that the image is in Minikube’s Docker registry:
|
||||
@ -20,19 +21,22 @@ Now change into directory kubernetes and create services and deployments:
|
||||
```sh
|
||||
cd kubernetes
|
||||
|
||||
kubectl create -f backend-deployment.yaml neo4j-deployment.yaml neo4j-data-persistentvolumeclaim.yaml
|
||||
kubectl create -f neo4j-deployment.yaml,neo4j-data-persistentvolumeclaim.yaml,backend-deployment.yaml,backend-service.yaml,neo4j-service.yaml
|
||||
|
||||
# expose the backend deployment
|
||||
kubectl expose backend hello-node --type=LoadBalancer
|
||||
|
||||
# and create the services
|
||||
kubectl create -f backend-service.yaml neo4j-service.yaml
|
||||
kubectl expose deployment backend --type=LoadBalancer
|
||||
# opionally expose the neo4j deployment
|
||||
kubectl expose deployment neo4j --type=LoadBalancer
|
||||
```
|
||||
|
||||
You can see the backend in action with
|
||||
You can see the backend in action with:
|
||||
```sh
|
||||
minikube service backend
|
||||
```
|
||||
Get an overview with your minikube dashboard:
|
||||
```sh
|
||||
minikube dashboard
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose -f docker-compose.yml convert
|
||||
kompose.cmd: kompose convert -f ../docker-compose.yml
|
||||
kompose.version: 1.16.0 (0c01309)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
|
||||
@ -2,7 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose -f docker-compose.yml convert
|
||||
kompose.cmd: kompose convert -f ../docker-compose.yml
|
||||
kompose.version: 1.16.0 (0c01309)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
|
||||
@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose -f docker-compose.yml convert
|
||||
kompose.cmd: kompose convert -f ../docker-compose.yml
|
||||
kompose.version: 1.16.0 (0c01309)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
@ -22,7 +22,7 @@ spec:
|
||||
- env:
|
||||
- name: NEO4J_AUTH
|
||||
value: none
|
||||
image: neo4j
|
||||
image: humanconnection/neo4j:latest
|
||||
name: neo4j
|
||||
ports:
|
||||
- containerPort: 7687
|
||||
|
||||
@ -2,7 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose -f docker-compose.yml convert
|
||||
kompose.cmd: kompose convert -f ../docker-compose.yml
|
||||
kompose.version: 1.16.0 (0c01309)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user