Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node_faye
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ikcrm_common
node_faye
Commits
aef3f731
Commit
aef3f731
authored
Oct 11, 2017
by
guxiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support docker-compose
parent
1cdc2070
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
Dockerfile
+10
-0
README.md
+6
-0
docker-compose.yml
+13
-0
No files found.
Dockerfile
0 → 100644
View file @
aef3f731
FROM
node:alpine
MAINTAINER
guxiaobai <sikuan.gu@gmail.com>
RUN
mkdir
-p
/usr/src/app/config
WORKDIR
/usr/src/app
COPY
package.json /usr/src/app/
COPY
yarn.lock /usr/src/app/
RUN
yarn install
README.md
View file @
aef3f731
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
node faye.js
node faye.js
curl localhost:9901/faye/client.js
curl localhost:9901/faye/client.js
== Run with docker
cp config/redis.yml.example config/redis.yml
(修改 localhost -> redis)
docker-composer up -d
== Deploy
== Deploy
...
...
docker-compose.yml
0 → 100644
View file @
aef3f731
version
:
'
3'
services
:
redis
:
image
:
redis:alpine
app
:
build
:
.
command
:
node faye.js
volumes
:
-
.:/usr/src/app
ports
:
-
"
9901:9901"
depends_on
:
-
redis
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment