get-docker-compose

1.1.2 • Public • Published

Run this script to generate docker-compose.yml

npx get-docker-compose

Generated docker-compose.yml file

services:
  client:
    container_name: client
    build: ./client/
    environment:
      - PORT=3000
    ports:
      - 8080:3000
    restart: if-failed

  server:
    container_name: server
    build: ./server/
    environment:
      - PORT=8000
    ports:
      - 8001:8000
    restart: if-failed
    networks:
      - backend

  mongodb:
    container_name: mongodb
    image: mongo:latest
    ports:
      - 27017:27017
    environment:
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: root
    restart: always
    networks:
      - backend

networks:
  backend:
    driver: bridge

Package Sidebar

Install

npm i get-docker-compose

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

267 kB

Total Files

12

Last publish

Collaborators

  • einsy.dev