diff options
author | KagurazakaNyaa <i@kagurazakanyaa.com> | 2021-10-24 02:04:58 +0800 |
---|---|---|
committer | KagurazakaNyaa <i@kagurazakanyaa.com> | 2021-10-24 02:04:58 +0800 |
commit | 04b8875a6b72fe6405601051b58899cdd03ca28d (patch) | |
tree | e62fbc3c6317d3dc0425f65951951b55886d434e | |
parent | Merge pull request #493 from RiversideRocks/patch-1 (diff) | |
download | server-04b8875a6b72fe6405601051b58899cdd03ca28d.tar.xz |
change docker build
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | docker-compose.yml | 27 |
2 files changed, 6 insertions, 23 deletions
diff --git a/Dockerfile b/Dockerfile index c0f3ab20..d4b423ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nikolaik/python-nodejs:latest +FROM node:14 WORKDIR /usr/src/fosscord-server/ COPY . . WORKDIR /usr/src/fosscord-server/bundle diff --git a/docker-compose.yml b/docker-compose.yml index 9fe41e15..3c03220c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 |