Dockerized
This commit is contained in:
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
version: '3'
|
||||
services:
|
||||
db:
|
||||
container_name: smartmeter_db
|
||||
image: mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootme
|
||||
MYSQL_DATABASE: smartmeter
|
||||
smartmeter:
|
||||
container_name: smartmeter
|
||||
build: .
|
||||
command: 'ruby ./smartmeter.rb'
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
depends_on:
|
||||
- db
|
||||
Reference in New Issue
Block a user