Commit 7dd58d9b authored by Spiros Koulouzis's avatar Spiros Koulouzis

fixed version and selector

parent 827cb249
version: '3' version: '3'
services: services:
#nginx: nginx:
#image: nginx image: nginx
#volumes: volumes:
#- ./nginx.conf:/etc/nginx/nginx.conf - ./nginx.conf:/etc/nginx/nginx.conf
#- ./cert.pem:/etc/nginx/cert.pem - ./cert.pem:/etc/nginx/cert.pem
#- ./privkey.pem:/etc/nginx/privkey.pem - ./privkey.pem:/etc/nginx/privkey.pem
##- ./www:/data/www #- ./www:/data/www
#ports: ports:
#- "80:80" - "80:80"
#- "443:443" - "443:443"
#rabbit: #rabbit:
#image: rabbitmq:3.8-management #image: rabbitmq:3.8-management
...@@ -32,24 +32,24 @@ services: ...@@ -32,24 +32,24 @@ services:
##ports: ##ports:
##- "3306:3306" ##- "3306:3306"
#semaphore: semaphore:
#image: qcdis/docker_ansible_semaphore image: qcdis/docker_ansible_semaphore
#environment: environment:
#SEMAPHORE_DB_USER: semaphore SEMAPHORE_DB_USER: semaphore
#SEMAPHORE_DB_PASS: semaphore SEMAPHORE_DB_PASS: semaphore
#SEMAPHORE_DB_HOST: mysql SEMAPHORE_DB_HOST: mysql
#SEMAPHORE_DB_PORT: 3306 SEMAPHORE_DB_PORT: 3306
#SEMAPHORE_DB: semaphore SEMAPHORE_DB: semaphore
#SEMAPHORE_PLAYBOOK_PATH: /etc/semaphore SEMAPHORE_PLAYBOOK_PATH: /etc/semaphore
#SEMAPHORE_ADMIN_PASSWORD: password SEMAPHORE_ADMIN_PASSWORD: password
#SEMAPHORE_ADMIN_NAME: "Developer" SEMAPHORE_ADMIN_NAME: "Developer"
#SEMAPHORE_ADMIN_EMAIL: admin@localhost SEMAPHORE_ADMIN_EMAIL: admin@localhost
#SEMAPHORE_ADMIN: admin SEMAPHORE_ADMIN: admin
#SEMAPHORE_WEB_ROOT: http://0.0.0.0:3000 SEMAPHORE_WEB_ROOT: http://0.0.0.0:3000
#ports: ports:
#- "3000:3000" - "3000:3000"
#depends_on: depends_on:
#- mysql - mysql
mongo: mongo:
image: mongo:4 image: mongo:4
...@@ -71,24 +71,24 @@ services: ...@@ -71,24 +71,24 @@ services:
- "8082:8082" - "8082:8082"
#manager: manager:
#depends_on: depends_on:
#- rabbit - rabbit
#- mongo - mongo
#- sure-tosca - sure-tosca
#image: qcdis/manager image: qcdis/manager
#environment: environment:
#RABBITMQ_HOST: rabbit RABBITMQ_HOST: rabbit
#MONGO_HOST: mongo MONGO_HOST: mongo
#SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0 SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#CREDENTIAL_SECRET: top_secret CREDENTIAL_SECRET: top_secret
#ports: ports:
#- "8080:8080" - "8080:8080"
#sure-tosca: sure-tosca:
#image: qcdis/sure-tosca image: qcdis/sure-tosca
#ports: ports:
#- "8081:8081" - "8081:8081"
#planner: #planner:
#depends_on: #depends_on:
......
...@@ -99,7 +99,7 @@ http { ...@@ -99,7 +99,7 @@ http {
} }
location /mongo-express { location /mongo-express {
proxy_pass http://mongo-express:8082; proxy_pass http://mongo-express:8082/mongo-express;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr; proxy_set_header X-Real_IP $remote_addr;
} }
......
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
creationTimestamp: null
labels:
io.kompose.service: mongo-express
name: mongo-express
spec:
selector:
matchLabels:
io.kompose.service: mongo-express
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: mongo-express
spec:
containers:
- env:
- name: ME_CONFIG_BASICAUTH_PASSWORD
value: pass
- name: ME_CONFIG_BASICAUTH_USERNAME
value: user
- name: ME_CONFIG_MONGODB_PORT
value: "27017"
- name: ME_CONFIG_MONGODB_SERVER
value: mongo
- name: ME_CONFIG_SITE_BASEURL
value: /mongo-express
- name: VCAP_APP_PORT
value: "8082"
image: mongo-express
name: mongo-express
ports:
- containerPort: 8082
resources: {}
restartPolicy: Always
status: {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment