Add docker-compose.yml and a gitignore for ignoring the data folder

This commit is contained in:
R.J. Steinert 2016-08-11 06:17:48 -04:00 committed by Michael Stenta
parent 7d2e30a9d9
commit fde2b147e1
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.data

28
docker-compose.yml Normal file
View File

@ -0,0 +1,28 @@
version: '2'
services:
db:
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
restart: always
environment:
MYSQL_ROOT_PASSWORD: farmos
MYSQL_DATABASE: farmos
MYSQL_USER: farmos
MYSQL_PASSWORD: farmos
farmos:
depends_on:
- db
image: rjsteinert/farmos:latest
links:
- db
ports:
- "80:80"
restart: always
environment:
MYSQL_HOST: db:3306
MYSQL_ROOT_PASSWORD: farmos
MYSQL_DATABASE: farmos
MYSQL_USER: farmos
MYSQL_PASSWORD: farmos