williansebastiao

docker-compose.yml

Nov 29th, 2021
843
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2. services:
  3.   nginx:
  4.     image: williansebastiao/nginx:laravel
  5.     container_name: nginx
  6.     ports:
  7.      - 8000:80
  8.     volumes:
  9.      - .:/var/www/app
  10.     depends_on:
  11.      - mysql
  12.       - php
  13.     networks:
  14.      - laravel
  15.   php:
  16.     image: williansebastiao/php:8
  17.     container_name: php
  18.     ports:
  19.      - 9000:9000
  20.     volumes:
  21.      - .:/var/www/app
  22.     depends_on:
  23.      - mysql
  24.     networks:
  25.      - laravel
  26.   mysql:
  27.     image: mysql:8
  28.     container_name: mysql
  29.     ports:
  30.      - 3308:3306
  31.     volumes:
  32.      - /var/lib/mysql
  33.     environment:
  34.      - MYSQL_ALLOW_EMPTY_PASSWORD=no
  35.       - MYSQL_DATABASE=${DB_DATABASE}
  36.       - MYSQL_USER=${DB_USERNAME}
  37.       - MYSQL_PASSWORD=${DB_PASSWORD}
  38.     networks:
  39.      - laravel
  40. networks:
  41.   laravel:
  42.     driver: bridge
RAW Paste Data