mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 23:55:20 +00:00
Docker: Basic dockerization of the gateway
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
replication:
|
||||
replSetName: "rs0"
|
||||
+3
-1
@@ -102,4 +102,6 @@ dist
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
|
||||
data
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user