Docker config update

This commit is contained in:
2018-03-19 17:37:12 +01:00
parent 625fd06a0f
commit e18a6262d7
2 changed files with 6 additions and 2 deletions

View File

@@ -2,14 +2,18 @@ version: '3'
services:
db:
container_name: smartmeter_db
restart: unless-stopped
image: mysql
environment:
MYSQL_ROOT_PASSWORD: rootme
MYSQL_DATABASE: smartmeter
smartmeter:
container_name: smartmeter
restart: unless-stopped
build: .
command: 'ruby ./smartmeter.rb'
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
volumes:
- .:/usr/src/app
depends_on: