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
mailhog: | |
image: mailhog/mailhog:latest | |
container_name: mailhog | |
logging: | |
driver: 'none' | |
ports: | |
- 1025:1025 | |
- 8025:8025 | |
networks: | |
- laravel |
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
laravel-queue: | |
build: | |
context: ./docker | |
dockerfile: php.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
container_name: laravel-queue | |
volumes: |
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
laravel-cron: | |
build: | |
context: ./docker | |
dockerfile: php.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
container_name: laravel-cron | |
volumes: |
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
redis: | |
image: redis:alpine | |
container_name: redis | |
restart: unless-stopped | |
ports: | |
- 6380:6379 | |
networks: | |
- laravel |
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
mysql: | |
image: mariadb:10.6 | |
container_name: mysql | |
restart: unless-stopped | |
tty: true | |
ports: | |
- 3307:3306 | |
environment: | |
MYSQL_DATABASE: ${DB_DATABASE} | |
MYSQL_USER: ${DB_USERNAME} |
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
FROM php:8.1-fpm-alpine | |
# environment arguments | |
ARG UID | |
ARG GID | |
ARG USER | |
ENV UID=${UID} | |
ENV GID=${GID} | |
ENV USER=${USER} |
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
php: | |
build: | |
context: ./docker | |
dockerfile: php.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
container_name: php | |
ports: |
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
server { | |
listen 8000; | |
index index.php index.html; | |
server_name _; | |
root /var/www/html/public; | |
error_log stderr warn; | |
access_log /dev/stdout main; | |
# error_log /var/log/nginx/error.log; |
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
FROM nginx:stable-alpine | |
# environment arguments | |
ARG UID | |
ARG GID | |
ARG USER | |
ENV UID=${UID} | |
ENV GID=${GID} | |
ENV USER=${USER} |
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
nginx: | |
build: | |
context: ./docker | |
dockerfile: nginx.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
restart: unless-stopped | |
container_name: nginx |