1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 18:32:33 +01:00

change docker build

This commit is contained in:
KagurazakaNyaa 2021-10-24 02:04:58 +08:00
parent 90ece05efc
commit 48a78d1e14
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/ WORKDIR /usr/src/fosscord-server/
COPY . . COPY . .
WORKDIR /usr/src/fosscord-server/bundle WORKDIR /usr/src/fosscord-server/bundle

View File

@ -1,24 +1,7 @@
version: "3" version: "3"
services: services:
db: server:
hostname: fosscord_db image: fosscord/server
image: mongo:latest build: .
volumes: ports:
- ./db:/data/db - 3001:3001
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