first version for docker-compose

This commit is contained in:
Joachim Lusiardi 2016-05-26 12:08:24 +02:00
parent 2176579baa
commit 10494a03a9
1 changed files with 20 additions and 0 deletions

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: '2'
services:
rollerverbrauch:
build: .
depends_on:
- database
volumes:
- /home/jlusiardi/Documents/rollerverbrauch_config/:/config
environment:
- config=/config/config.py
- DATABASE_ENV_MYSQL_ROOT_PASSWORD=foobar123
ports:
- 5000
database:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=foobar123
- MYSQL_DATABASE=pitstops
ports:
- 3306