initial docker setup

This commit is contained in:
GotPPay
2018-06-14 16:49:28 +02:00
parent bc80b7342e
commit b5f87f27f8
3023 changed files with 985078 additions and 1 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version : '2'
services:
web:
build:
context: .
dockerfile: web.dockerfile
volumes:
- ./log/web/:/var/log/apache2/
ports:
- '8080:80'
- '8081:443'
depends_on:
- db
#use links keywoard to use db as a known host "db" to connect to database
links:
- db
db:
build:
context: .
dockerfile: mysql.dockerfile
ports:
- '23306:3306'