Skip to content

Instantly share code, notes, and snippets.

@blistok blistok/config.yaml Secret
Last active Jun 8, 2019

Embed
What would you like to do?
Cockpit mongo docker compose
database:
server: mongodb://cockpit-mongo:27017
options:
db: cockpitmongodb
username: root
password: root
version: "3.7"
services:
cockpit-mongo:
image: mongo
environment:
MONGO_INITDB_DATABASE: "cockpitmongodb"
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- "27017:27017"
volumes:
- /path/on/your/machine:/data/db # Change this to suite your location where the data should be persisted
networks:
- cockpit-mongo-net
qzc-ams-app:
image: cockpit/dev
ports:
- "8080:80"
volumes:
- type: bind
source: ./
target: /var/www/html
depends_on:
- cockpit-mongo
networks:
- cockpit-mongo-net
networks:
cockpit-mongo-net:
  1. Clone Cockpit CMS:
    git clone https://github.com/agentejo/cockpit

  2. Copy config.yaml to config/config.yaml

  3. Copy docker-compose.yaml

  4. Run:

npm run docker-init
docker-compose up
  1. Go to: http://localhost:8080/install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.