Skip to content

Instantly share code, notes, and snippets.

@clcollins
Created September 12, 2017 22:39
Show Gist options
  • Save clcollins/452bca577bbcd2f9436843239f57179d to your computer and use it in GitHub Desktop.
Save clcollins/452bca577bbcd2f9436843239f57179d to your computer and use it in GitHub Desktop.
Docker Compose-based, single-server deploy of CHN Server
version: '2'
services:
mongodb:
build:
dockerfile: ./Dockerfile-centos
context: https://github.com/CommunityHoneyNetwork/mongodb.git
image: mongodb:centos
ports:
- "127.0.0.1:27017:27017"
volumes:
- /srv/chn/db/centos:/var/lib/mongo:z
redis:
build:
dockerfile: ./Dockerfile-centos
context: https://github.com/CommunityHoneyNetwork/redis.git
image: redis:centos
ports:
- "127.0.0.1:6379:6379"
volumes:
- /srv/chn/redis/centos:/var/lib/redis:z
hpfeeds:
build:
dockerfile: ./Dockerfile-centos
context: https://github.com/CommunityHoneyNetwork/hpfeeds.git
image: hpfeeds:centos
links:
- mongodb:mongodb
ports:
- "10000:10000"
mnemosyne:
build:
dockerfile: ./Dockerfile-centos
context: https://github.com/CommunityHoneyNetwork/mnemosyne.git
image: mnemosyne:centos
links:
- mongodb:mongodb
- hpfeeds:hpfeeds
ports:
- "127.0.0.1:8181:8181"
chnserver:
build:
dockerfile: ./Dockerfile-centos
context: https://github.com/CommunityHoneyNetwork/CHN-Server.git
image: chnserver:centos
links:
- mongodb:mongodb
- redis:redis
- hpfeeds:hpfeeds
ports:
- "80:80"
- "127.0.0.1:443:443"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment