Skip to content

Instantly share code, notes, and snippets.

@pschmitt
Last active May 18, 2017 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pschmitt/52090e8a862d308d1d7f156665bf2520 to your computer and use it in GitHub Desktop.
Save pschmitt/52090e8a862d308d1d7f156665bf2520 to your computer and use it in GitHub Desktop.
docker-compose file for Shinobi with data persistence
version: '2'
services:
shinobi:
container_name: shinobi
build:
context: .
depends_on:
- mysql
restart: always
environment:
- MYSQL_HOST=shinobi-db
- MYSQL_USER=shinobi
- MYSQL_DATABASE=cctv
- MYSQL_PASSWORD=shinobi_pass
- MYSQL_ROOT_PASSWORD=rootpass
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/shinobi/data/videos:/opt/shinobi/videos
ports:
- "8080:8080"
mysql:
image: mysql:latest
container_name: shinobi-db
volumes:
- /srv/shinobi/data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=rootpass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment