Skip to content

Instantly share code, notes, and snippets.

@saladinjake
Forked from clcollins/docker-compose.yml
Created May 15, 2019 15:17
Show Gist options
  • Save saladinjake/2c83654325ed3a3f32c9673217a713da to your computer and use it in GitHub Desktop.
Save saladinjake/2c83654325ed3a3f32c9673217a713da 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