3 files changed, 25 insertions, 1 deletions
diff --git a/.docker/mongodb/mongod.conf b/.docker/mongodb/mongod.conf
new file mode 100644
index 00000000..cbe0a2a5
--- /dev/null
+++ b/.docker/mongodb/mongod.conf
@@ -0,0 +1,2 @@
+replication:
+ replSetName: "rs0"
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 5c7cd31d..daf8591a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -102,4 +102,6 @@ dist
# TernJS port file
.tern-port
-.DS_Store
\ No newline at end of file
+.DS_Store
+
+data
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..9e665b1d
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,20 @@
+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"]
|