Skip to content

Commit

Permalink
Add docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
sshnaidm committed Jul 12, 2017
1 parent be2e886 commit 2d6fe62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '2'
services:

www:
container_name: cistatus
restart: always
image: sshnaidm/sova
ports:
- "80:8090"
volumes:
- ~/cidata:/cidata:z
command: "-p"
5 changes: 4 additions & 1 deletion run_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ if [[ -z "$MOUNT_DIR" || ! -d "$MOUNT_DIR" ]]; then
exit 1
fi

docker run --name cistatus -v $1:/cidata:z -d -p 80:8090 --restart always docker.io/sshnaidm/sova -p
# For running with docker only
# docker run --name cistatus -v $1:/cidata:z -d -p 80:8090 --restart always docker.io/sshnaidm/sova -p
docker-compose pull
docker-compose up -d

0 comments on commit 2d6fe62

Please sign in to comment.