summary refs log tree commit diff
diff options
context:
space:
mode:
authorKagurazakaNyaa <i@kagurazakanyaa.com>2021-10-24 02:04:58 +0800
committerKagurazakaNyaa <i@kagurazakanyaa.com>2021-10-24 02:04:58 +0800
commit04b8875a6b72fe6405601051b58899cdd03ca28d (patch)
treee62fbc3c6317d3dc0425f65951951b55886d434e
parentMerge pull request #493 from RiversideRocks/patch-1 (diff)
downloadserver-04b8875a6b72fe6405601051b58899cdd03ca28d.tar.xz
change docker build
-rw-r--r--Dockerfile2
-rw-r--r--docker-compose.yml27
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