Docker: Basic dockerization of the gateway

This commit is contained in:
Diego Magdaleno 2021-05-08 17:39:03 -05:00
parent 1cab0eca72
commit 81f6539165
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,2 @@
replication:
replSetName: "rs0"

2
.gitignore vendored
View File

@ -103,3 +103,5 @@ dist
# TernJS port file
.tern-port
.DS_Store
data

20
docker-compose.yml Normal file
View File

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