1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00

change docker build

This commit is contained in:
KagurazakaNyaa 2021-10-24 02:04:58 +08:00
parent 4901d50409
commit 04b8875a6b
2 changed files with 6 additions and 23 deletions

View File

@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:latest
FROM node:14
WORKDIR /usr/src/fosscord-server/
COPY . .
WORKDIR /usr/src/fosscord-server/bundle

View File

@ -1,24 +1,7 @@
version: "3"
services:
db:
hostname: fosscord_db
image: mongo:latest
volumes:
- ./db:/data/db
restart: unless-stopped
api:
hostname: fosscord_api
image: fosscord/api
depends_on:
- db
ports:
- 3001:3001
env_file: ./.docker/env
gateway:
hostname: fosscord_gateway
image: fosscord/gateway
depends_on:
- db
ports:
- 3002:3002
env_file: ./.docker/env
server:
image: fosscord/server
build: .
ports:
- 3001:3001