Skip to content

Commit

Permalink
Update Docker $USER_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
javadmohebbi committed Apr 7, 2021
1 parent 0e87737 commit fdaa005
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/vendors/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:

image: influxdb:2.0

user: ${USER_ID}

volumes:
- ${INFLUX_DIR}:/var/lib/influxdb2

Expand All @@ -25,6 +27,8 @@ services:

image: grafana/grafana

user: ${USER_ID}

volumes:
- ${GRAFANA_DIR}:/var/lib/grafana

Expand Down
5 changes: 4 additions & 1 deletion dockerize/build-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
# PROJECT DIR
export PROJECT_DIR=$HOME/oi24/nfcollector


export USER_ID=$(id u)

export NFC_LISTEN_ADDRESS="0.0.0.0"
export NFC_LISTEN_PORT="6859"
export NFC_INFLUXDB_HOST="influxdb"
export NFC_INFLUXDB_HOST="127.0.0.1"
export NFC_INFLUXDB_PORT="8086"
export NFC_INFLUXDB_TOKEN="TOKEN"
export NFC_INFLUXDB_BUCKET="nfCollector"
Expand Down
2 changes: 1 addition & 1 deletion dockerize/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:

image: javadmohebbi/gonfcollector

network_mode: none
network_mode: host

ports:
- "6859:6859/udp"
Expand Down

0 comments on commit fdaa005

Please sign in to comment.