feat: docker init

This commit is contained in:
Innei
2021-07-29 19:37:55 +08:00
parent 08b725befd
commit c92d723ea1
12 changed files with 346 additions and 19 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
version: '3.8'
services:
prod:
container_name: mx-space-server
image: mx-space-server:1.0.0
build:
context: .
target: production
dockerfile: ./Dockerfile
command: npm run start:prod
ports:
- 2333:2333
networks:
- nesjs-network
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
networks:
nesjs-network: