Docker: Basic dockerization of the gateway
This commit is contained in:
parent
1cab0eca72
commit
81f6539165
2
.docker/mongodb/mongod.conf
Normal file
2
.docker/mongodb/mongod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
replication:
|
||||||
|
replSetName: "rs0"
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -102,4 +102,6 @@ dist
|
|||||||
|
|
||||||
# TernJS port file
|
# TernJS port file
|
||||||
.tern-port
|
.tern-port
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
data
|
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user