Guest User

Untitled

a guest
Jan 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. version: '3'
  2. services:
  3. php:
  4. build: ./Dockerfiles/php
  5. container_name: "laravel_php"
  6. volumes:
  7. - ./src:/var/www/html
  8. working_dir: /var/www/html
  9. command: ["php", "entrypoint.sh"]
  10. tty: true
  11. stdin_open: true
  12.  
  13. $ docker-compose up
  14. Recreating laravel_php ... done
  15. Attaching to laravel_php
  16. laravel_php | 2019/01/20 07:41:14 entrypoint.sh [INFO] Connection confriming...
  17. laravel_php exited with code 0
  18.  
  19. $ docker ps -all
  20. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  21. 0371439067da laravel_php "docker-php-entrypoi…" 11 seconds ago Exited (0) 10 seconds ago laravel_php
  22.  
  23. #!/bin/bash
  24. set -e
  25. echo `date '+%Y/%m/%d %H:%M:%S'` $0 "[INFO] Connection confriming..."
Add Comment
Please, Sign In to add comment