diff --git a/docker-compose.yml b/docker-compose.yml index 6f6db99b..1d4a6cb0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,8 +19,6 @@ services: container_name: mongodb restart: unless-stopped command: mongod --auth - ports: - - 27017:27017 environment: MONGO_INITDB_ROOT_USERNAME: "attackSeaman" MONGO_INITDB_ROOT_PASSWORD: "cuccs1sgreat" @@ -45,10 +43,7 @@ services: app: container_name: app - # Configuration for building the docker image for the service - build: - context: ./src # Use an image built from the specified dockerfile in the current directory. - dockerfile: Dockerfile + image: yanhui22/attack-seaman:latest ports: - 6868:6868 - 4200:4200 diff --git a/frontend/docker-compose.test.yml b/frontend/docker-compose.test.yml deleted file mode 100644 index 43fc0407..00000000 --- a/frontend/docker-compose.test.yml +++ /dev/null @@ -1,60 +0,0 @@ -version: '3' -services: - sut: - depends_on: - - mongodb - - mongo_seed - - app - build: - context: . - dockerfile: Dockerfile - ports: - - 3000:3000 - volumes: - - .:/app - - /app/node_modules - networks: - - web - - mongodb: - image: mongo - container_name: mongodb - restart: unless-stopped - command: mongod --auth - ports: - - 27017:27017 - 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: - image: mongo - links: - - mongodb - networks: - - web - volumes: - - ../database:/database - command: - /bin/sh /database/import.sh - - app: - # Configuration for building the docker image for the service - build: - context: ../src # Use an image built from the specified dockerfile in the current directory. - dockerfile: Dockerfile - 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: \ No newline at end of file