Advertisement
Overfinch

docker-compose.yml

Jul 18th, 2022 (edited)
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.11 KB | None | 0 0
  1. version: "3.3"
  2.  
  3. services:
  4.     nginx:
  5.         build:
  6.             context: .
  7.             dockerfile: docker/Nginx.dockerfile
  8.         ports:
  9.            -   8098:80
  10.         volumes:
  11.            - ./:/var/www/laravel-docker
  12.         links:
  13.            - fpm
  14.     fpm:
  15.         build:
  16.             context: .
  17.             dockerfile: docker/Fpm.dockerfile
  18.         volumes:
  19.            -   ./:/var/www/laravel-docker
  20.             - type: "bind"
  21.               source: "/tmp"
  22.               target: "/tmp"
  23.         links:
  24.            -   mysql
  25.     mysql:
  26.         platform: linux/x86_64
  27.         image: mysql
  28.         command: --default-authentication-plugin=mysql_native_password
  29.         restart: always
  30.         ports:
  31.        -   3306:3306
  32.         environment:
  33.             MYSQL_ROOT_PASSWORD: root
  34.             #MYSQL_DATABASE: laravel
  35.         volumes:
  36.            - mysql-data:/var/lib/mysql
  37.  
  38.     phpmyadmin:
  39.         image: phpmyadmin
  40.         restart: always
  41.         ports:
  42.            - 8080:80
  43.         environment:
  44.            - PMA_ARBITRARY=1
  45.             - PMA_HOST=mysql
  46.  
  47. volumes:
  48.     mysql-data:
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement