cube
cube copied to clipboard
docker-compose up not working
Starting mongodocker_redis_db_1 ... done
Starting mongodocker_cube_1 ... done
Attaching to mongodocker_redis_db_1, mongodocker_cube_1
redis_db_1 | 1:C 16 Jul 2019 09:37:04.648 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_db_1 | 1:C 16 Jul 2019 09:37:04.648 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=1, just started
redis_db_1 | 1:C 16 Jul 2019 09:37:04.648 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_db_1 | 1:M 16 Jul 2019 09:37:04.650 * Running mode=standalone, port=6379.
redis_db_1 | 1:M 16 Jul 2019 09:37:04.650 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_db_1 | 1:M 16 Jul 2019 09:37:04.650 # Server initialized
redis_db_1 | 1:M 16 Jul 2019 09:37:04.655 * DB loaded from disk: 0.005 seconds
redis_db_1 | 1:M 16 Jul 2019 09:37:04.655 * Ready to accept connections
cube_1 | 🔓 Authentication checks are disabled in developer mode. Please use NODE_ENV=production to enable it.
cube_1 | 🦅 Dev environment available at http://localhost:4000
Upon opening localhost:4000 nothing gets displayed in the browser
Working on https://cube.dev/docs/deployment#docker
Dockerfile
FROM node:10-alpine
WORKDIR /mongodocker
COPY package*.json ./
RUN npm install
COPY . /mongodocker
EXPOSE 4000
docker-compose
image: redis
ports:
- "6379"
cube:
build: .
env_file: .env
expose:
- "4000"
volumes:
- /schema
command: node index.js
links:
- redis_db
Need to display the webpages
P.S : I am using mongodb as the database and not redis