From ac594ba31d087b0b1a00b42e758ed762ebfda1ee Mon Sep 17 00:00:00 2001 From: Diego Magdaleno Date: Sat, 8 May 2021 17:48:19 -0500 Subject: [PATCH] Setup: Add env file and delete docker-compose.yml --- .env | 1 + .gitignore | 1 - docker-compose.yml | 20 -------------------- 3 files changed, 1 insertion(+), 21 deletions(-) create mode 100644 .env delete mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 00000000..df6d28c8 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +MONGO_URL=mongodb://mongo:27017/fosscord?readPreference=secondaryPreferred \ No newline at end of file diff --git a/.gitignore b/.gitignore index daf8591a..d7a5d6dc 100644 --- a/.gitignore +++ b/.gitignore @@ -69,7 +69,6 @@ typings/ .yarn-integrity # dotenv environment variables file -.env .env.test # parcel-bundler cache (https://parceljs.org/) diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 9e665b1d..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,20 +0,0 @@ -version: "3" -services: - fosscord-gateway: - container_name: fosscord-gateway - restart: always - build: . - ports: - - "3002:3002" - links: - - mongo - env_file: .env - mongo: - container_name: mongo - image: mongo - volumes: - - ./data:/data/db - - ./.docker/mongodb/mongod.conf:/etc/mongod.conf - ports: - - "27017:27017" - command: ["-f", "/etc/mongod.conf"]