robin*

컴포즈 / k8s용 yml파일 추가

...@@ -2,5 +2,13 @@ version: '3' ...@@ -2,5 +2,13 @@ version: '3'
2 services: 2 services:
3 db: 3 db:
4 image: 'mongo:3.6' 4 image: 'mongo:3.6'
5 + volumes:
6 + - ./mongo-data:/data/db
7 + app:
8 + image: registry.gitlab.com/robin-maki/floater
5 ports: 9 ports:
6 - - '27017:27017'
...\ No newline at end of file ...\ No newline at end of file
10 + - '3429:3429'
11 + links:
12 + - db
13 + environment:
14 + - MONGODB_URL=db/floater
...\ No newline at end of file ...\ No newline at end of file
......
1 +apiVersion: v1
2 +kind: Deployment
3 +metadata:
4 + name: assignments-3rd
5 +spec:
6 + template:
7 + spec:
8 + containers:
9 + - name: db
10 + image: mongo:3.6
11 + metadata:
12 + - name: mongodb
13 + ports:
14 + - name: mongo-port
15 + protocol: TCP
16 + port: 27017
17 + targetPort: 27017
18 + - name: floater
19 + image: registry.gitlab.com/robin-maki/floater:latest
20 + env:
21 + - name: MONGODB_URL
22 + value: "mongodb/floater"
...\ No newline at end of file ...\ No newline at end of file