Skip to content

Commit

Permalink
Changed containers to have all the data included and don't mount any …
Browse files Browse the repository at this point in the history
…volumes
  • Loading branch information
TrafeX committed Feb 16, 2016
1 parent c4677b0 commit 126068b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM php:7.0-fpm
FROM debian:jessie

COPY config/php.ini /usr/local/etc/php/conf.d/custom.ini
ADD ./src/ /var/www/html/
COPY src/ /var/www/html/

VOLUME /var/www/html/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ See the PHP info on http://docker-app.dev
Resources & inspiration
-----------------------
https://ejosh.co/de/2015/09/how-to-link-docker-containers-together

https://github.com/johanan/Ansible-and-Docker
10 changes: 3 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
appdata:
image: debian:jessie
volumes:
- ./src:/var/www/html
build: .

fpm:
build: .
build: ./fpm
volumes_from:
- appdata

nginx:
image: nginx:1.9
build: ./nginx
links:
- fpm
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/app.conf:ro
volumes_from:
- appdata
ports:
Expand Down
3 changes: 3 additions & 0 deletions fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM php:7.0-fpm

COPY php.ini /usr/local/etc/php/conf.d/custom.ini
File renamed without changes.
3 changes: 3 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:1.9

COPY nginx.conf /etc/nginx/conf.d/app.conf
File renamed without changes.

0 comments on commit 126068b

Please sign in to comment.