1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

Setup: Add env file and delete docker-compose.yml

This commit is contained in:
Diego Magdaleno 2021-05-08 17:48:19 -05:00
parent 81f6539165
commit ac594ba31d
3 changed files with 1 additions and 21 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
MONGO_URL=mongodb://mongo:27017/fosscord?readPreference=secondaryPreferred

1
.gitignore vendored
View File

@ -69,7 +69,6 @@ typings/
.yarn-integrity .yarn-integrity
# dotenv environment variables file # dotenv environment variables file
.env
.env.test .env.test
# parcel-bundler cache (https://parceljs.org/) # parcel-bundler cache (https://parceljs.org/)

View File

@ -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"]