mirror of
https://github.com/spacebarchat/spacebarchat.git
synced 2024-11-08 11:42:39 +01:00
Docker: Begin dockerization
This commit is contained in:
parent
d2ce6334e7
commit
8ee2f7e17f
0
.docker/data/.keep
Normal file
0
.docker/data/.keep
Normal file
1
.docker/env
Normal file
1
.docker/env
Normal file
@ -0,0 +1 @@
|
||||
MONGO_URL=mongodb://mongo:27017/fosscord?readPreference=secondaryPreferred
|
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
@ -1,2 +1,4 @@
|
||||
node_modules/
|
||||
.DS_STORE
|
||||
.DS_STORE
|
||||
.docker/data/*
|
||||
!.docker/data/.keep
|
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
@ -0,0 +1,26 @@
|
||||
version: "3"
|
||||
services:
|
||||
fosscord-gateway:
|
||||
container_name: gateway
|
||||
restart: always
|
||||
build: gateway
|
||||
ports:
|
||||
- "3002:3002"
|
||||
links:
|
||||
- mongo
|
||||
env_file: ./.docker/env
|
||||
fosscord-api:
|
||||
container_name: api
|
||||
restart: always
|
||||
build: api
|
||||
ports:
|
||||
- "3001:3001"
|
||||
mongo:
|
||||
container_name: mongo
|
||||
image: mongo
|
||||
volumes:
|
||||
- ./.docker/data:/data/db
|
||||
- ./.docker/mongodb/mongod.conf:/etc/mongod.conf
|
||||
ports:
|
||||
- "27017:27017"
|
||||
command: ["-f", "/etc/mongod.conf"]
|
Loading…
Reference in New Issue
Block a user