Update (#1)
This commit is contained in:
48
docker-compose.yml
Normal file
48
docker-compose.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
####################################################################################################
|
||||
# PHP
|
||||
####################################################################################################
|
||||
php:
|
||||
container_name: laravel_php
|
||||
build: .docker/php
|
||||
ports:
|
||||
- 5173:5173
|
||||
volumes:
|
||||
- .:/var/www:cached
|
||||
|
||||
####################################################################################################
|
||||
# Nginx
|
||||
####################################################################################################
|
||||
nginx:
|
||||
container_name: laravel_nginx
|
||||
image: nginx
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- .:/var/www
|
||||
- .docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
- .docker/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
depends_on:
|
||||
- php
|
||||
|
||||
####################################################################################################
|
||||
# DATABASE (MariaDB)
|
||||
####################################################################################################
|
||||
db:
|
||||
container_name: laravel_db
|
||||
image: mariadb:10.5
|
||||
ports:
|
||||
- 3306:3306
|
||||
volumes:
|
||||
- .docker/db/data:/var/lib/mysql
|
||||
- .docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
|
||||
- .docker/db/sql:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: laravel_db_name
|
||||
MYSQL_USER: laravel_db_user
|
||||
MYSQL_PASSWORD: laravel_user_pass
|
||||
TZ: Asia/Tokyo
|
||||
Reference in New Issue
Block a user