version: "3" services: client: container_name: client build: context: ./frontend dockerfile: Dockerfile tty: true ports: - 3000:3000 volumes: - ./frontend:/app - /app/node_modules networks: - web mongodb: image: mongo container_name: mongodb restart: unless-stopped command: mongod --auth environment: MONGO_INITDB_ROOT_USERNAME: "attackSeaman" MONGO_INITDB_ROOT_PASSWORD: "cuccs1sgreat" MONGO_INITDB_DATABASE: attackSeaman MONGODB_DATA_DIR: /data/db volumes: - ./database/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro networks: - web mongo_seed: container_name: mongo_seed image: mongo links: - mongodb networks: - web volumes: - ./database:/database command: /bin/sh /database/import.sh app: container_name: app image: yanhui22/attack-seaman:latest ports: - 6868:6868 - 4200:4200 restart: unless-stopped networks: - web # Networks to join (Services on the same network can communicate with each other using their name) networks: web: driver: bridge