diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..2545f434 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM tutum/apache-php + +MAINTAINER Alex Tselegidis + +EXPOSE 80 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7a63f0f1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +storage: + image: 'busybox:latest' + volumes: + - /var/lib/mysql + - ./src:/app + command: sleep 3153600000 +database: + image: mysql:5.7 + environment: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: easyappointments + volumes_from: + - storage + restart: always + mem_limit: 200m +app: + build: ./ + ports: + - 80:80 + links: + - database:database + volumes_from: + - storage