Last active
August 29, 2015 14:18
-
-
Save j00bar/280ce92fdbd1f6789d78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Excerpt from Dockerfile | |
| COPY . /www | |
| WORKDIR /www | |
| RUN curl -sS https://getcomposer.org/installer | /usr/bin/php -- --install-dir=/www --filename=composer | |
| RUN ./composer install | |
| RUN chown -R www-data:www-data /www | |
| EXPOSE 9000 | |
| CMD /usr/sbin/php5-fpm -F | |
| # Excerpt from docker-compose.yml | |
| webapp: | |
| build: . | |
| volumes: | |
| - .:/www | |
| nginx: | |
| image: nginx:1.7 | |
| volumes: | |
| - docker/nginx.conf:/etc/nginx/nginx.conf:ro | |
| - /var/log/nginx:/var/log/nginx | |
| - public:/www/public | |
| links: | |
| - webapp | |
| ports: | |
| - "8000:80" | |
| # After rebuild and recreate, I nsenter into the webapp container: | |
| root@0b92ab1dd595:/# ls www/vendor | |
| root@0b92ab1dd595:/# mount | |
| /dev/mapper/docker-8:1-262153-0b92ab1dd595d5dbe2efbfa85c275b0980b85d65f4ec0adb61d657b17fa3bdd9 on / type ext4 (rw,relatime,discard,stripe=16,data=ordered) | |
| proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) | |
| tmpfs on /dev type tmpfs (rw,nosuid,mode=755) | |
| shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k) | |
| mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) | |
| devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666) | |
| sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime) | |
| /dev/disk/by-uuid/89172637-1f45-49fe-89ca-d5b8a2a89bd4 on /etc/resolv.conf type ext4 (rw,relatime,data=ordered) | |
| /dev/disk/by-uuid/89172637-1f45-49fe-89ca-d5b8a2a89bd4 on /etc/hostname type ext4 (rw,relatime,data=ordered) | |
| /dev/disk/by-uuid/89172637-1f45-49fe-89ca-d5b8a2a89bd4 on /etc/hosts type ext4 (rw,relatime,data=ordered) | |
| none on /www type vboxsf (rw,nodev,relatime) | |
| /dev/disk/by-uuid/89172637-1f45-49fe-89ca-d5b8a2a89bd4 on /www/public type ext4 (rw,relatime,data=ordered) | |
| /dev/disk/by-uuid/89172637-1f45-49fe-89ca-d5b8a2a89bd4 on /www/vendor type ext4 (rw,relatime,data=ordered) | |
| proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime) | |
| proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime) | |
| proc on /proc/irq type proc (ro,nosuid,nodev,noexec,relatime) | |
| proc on /proc/bus type proc (ro,nosuid,nodev,noexec,relatime) | |
| tmpfs on /proc/kcore type tmpfs (rw,nosuid,mode=755) | |
| # Why are there separate montpoints for /www, /www/public, and /www/vendor? | |
| # And why is /www/vendor empty, when it's not on my docker host? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment