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:
parent
90ece05efc
commit
48a78d1e14
@ -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
|
||||||
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user