Last active
March 13, 2019 08:29
-
-
Save yudapc/038db02296bbe56fcf215bb038274b38 to your computer and use it in GitHub Desktop.
sailsjs - docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build image: | |
$ docker build -t yudapc/sailsjs:0.0.1 . | |
Build container: | |
$ docker-compose up -d | |
Stop Container: | |
$ docker-compose down -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
sailsjs: | |
image: yudapc/sailsjs:0.0.1 | |
container_name: sailsjs | |
command: sails lift | |
ports: | |
- 1337:1337 | |
volumes: | |
- ./app:/usr/src/app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:11-alpine | |
EXPOSE 1337 | |
WORKDIR /usr/src/app | |
RUN npm install sails -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment