Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Umount Directory From Host To Container #443

Open
YovanggaAnandhika opened this issue Jun 24, 2024 · 0 comments
Open

Cannot Umount Directory From Host To Container #443

YovanggaAnandhika opened this issue Jun 24, 2024 · 0 comments

Comments

@YovanggaAnandhika
Copy link

I build compose.yml for buil container with nodejs official from strach
but all file to packages/frontend cannot read from container.

With error logs like this :

024-06-24 14:17:20 yarn run v1.22.22
2024-06-24 14:17:20 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-06-24 14:17:20 error Couldn't find a package.json file in "/home/app"

the code :

name: dev-syncmed-klinik

services:
  #
  dev-frontend-node:
    image: node:alpine
    container_name: dev-frontend
    working_dir: /home/app
    volumes:
      - ./packages/frontend:/home/app # Adjust path if needed
    networks:
      dev-syncmed-network:
        ipv4_address: 101.113.0.2
    ports:
      - "80:80"
    command: "yarn run start"

  dev-backend-node:
    image: node:alpine
    container_name: dev-backend
    working_dir: /home/app
    volumes:
      - ./packages/backend:/home/app # Adjust path if needed
      - test-data:/home/app
    links:
      - dev-mongodb
    networks:
      dev-syncmed-network:
        ipv4_address: 101.113.0.3
    ports:
      - "5000:5000"
    command: "yarn run start"
    depends_on:
      - dev-mongodb


  dev-mongodb:
    image: mongo:latest
    container_name: dev-mongodb
    environment:
      MONGO_INITDB_ROOT_USERNAME: -
      MONGO_INITDB_ROOT_PASSWORD: -
    ports:
      - "27017:27017"
    volumes:
      - mongodb-data:/data/db
    networks:
      dev-syncmed-network:
        ipv4_address: 101.113.0.4

volumes:
  mongodb-data:
    name: dev-mongodb
    driver: local
  test-data:
    driver: local

networks:
  dev-syncmed-network:
    driver: bridge
    ipam:
      config:
        - subnet: 101.113.0.0/24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant