Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
setiseta committed May 31, 2015
1 parent 9639716 commit 0389b67
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,32 @@ Usage example
===
###Needed directories on host:
- data
- mysql

### with sameersbn/mysql as database

```
NAME="observium"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker run -d -m 1g \
-v $DIR/mysql:/var/lib/mysql \
-e DB_USER=$NAME \
-e DB_PASS=observiumpwd \
-e DB_NAME=$NAME \
--name $NAME-db \
sameersbn/mysql:latest
```

```
NAME="observium"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker run -d \
-v /hostDir/config:/config \
-v /hostDir/logs:/opt/observium/logs \
-v /hostDir/rrd:/opt/observium/rrd \
-v $DIR/data:/data \
-p 80:80 \
-e TZ="Europe/Austria" \
--link observium-db:mysql \
--link $NAME-db:mysql \
-e POLLER=24 \
--name observium \
--name $NAME \
seti/observium
```

Expand Down
3 changes: 3 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ atd

if [ ! -f /data/config ]; then
mkdir /data/config
chown nobody:users /data/config
fi
if [ ! -f /data/rrd ]; then
mkdir /data/rrd
chown nobody:users /data/rrd
fi
if [ ! -f /data/logs ]; then
mkdir /data/logs
chown nobody:users /data/logs
fi

# Check if PHP database config exists. If not, copy in the default config
Expand Down

0 comments on commit 0389b67

Please sign in to comment.