robin*

컴포즈 / k8s용 yml파일 추가

......@@ -2,5 +2,13 @@ version: '3'
services:
db:
image: 'mongo:3.6'
volumes:
- ./mongo-data:/data/db
app:
image: registry.gitlab.com/robin-maki/floater
ports:
- '27017:27017'
\ No newline at end of file
- '3429:3429'
links:
- db
environment:
- MONGODB_URL=db/floater
\ No newline at end of file
......
apiVersion: v1
kind: Deployment
metadata:
name: assignments-3rd
spec:
template:
spec:
containers:
- name: db
image: mongo:3.6
metadata:
- name: mongodb
ports:
- name: mongo-port
protocol: TCP
port: 27017
targetPort: 27017
- name: floater
image: registry.gitlab.com/robin-maki/floater:latest
env:
- name: MONGODB_URL
value: "mongodb/floater"
\ No newline at end of file