Docker container Nginx:1.25.3 + Node:21.3 + php:8.3 Special for laravel Project
528
# Modules
[PHP Modules]
bcmath amqp Core ctype curl date dom exif fileinfo filter ftp gd hash iconv igbinary imap intl json ldap libxml mbstring memcached mongodb
msgpack mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix random readline redis Reflection session
SimpleXML soap sockets sodium SPL sqlite3 standard swoole tokenizer xml xmlreader xmlwriter Zend OPcache zip zlib
[Zend Modules]
Zend OPcache
# For more information: https://laravel.com/docs/sail
version: '3'
services:
laravel.test:
image: ferilagi/invis:{tagname}
environment:
TZ: 'Asia/Jakarta'
WEBROOT: '/var/www/html/public'
PHP_REDIS_SESSION_HOST: 'redis'
CREATE_LARAVEL_STORAGE: '1'
COMPOSERMIRROR: 'https://mirrors.cloud.tencent.com/composer/'
NPMMIRROR: 'https://registry.npmmirror.com'
ports:
- '${APP_PORT:-80}:80'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
# you need to put your website into this folder ./conf/www or edit as u wish
- './conf/www:/var/www/html'
- './conf/nginx:/etc/nginx/conf.d'
# if you need add config to supervisor.d uncomment this line below
# - './conf/supervisor:/etc/supervisor/conf.d'
# if you want use https service and have cert, put to this folder and uncomment this line below
# - './conf/ssl:/etc/nginx/ssl'
networks:
- sail
depends_on:
- mysql
- redis
- meilisearch
- selenium
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'sail-mysql:/var/lib/mysql'
networks:
- sail
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'sail-redis:/data'
networks:
- sail
healthcheck:
test: ["CMD", "redis-cli", "ping"]
retries: 3
timeout: 5s
meilisearch:
image: 'getmeili/meilisearch:latest'
ports:
- '${FORWARD_MEILISEARCH_PORT:-7700}:7700'
volumes:
- 'sail-meilisearch:/data.ms'
networks:
- sail
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
retries: 3
timeout: 5s
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '${FORWARD_MAILHOG_PORT:-1025}:1025'
- '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
networks:
- sail
selenium:
image: 'selenium/standalone-chrome'
volumes:
- '/dev/shm:/dev/shm'
networks:
- sail
networks:
sail:
driver: bridge
volumes:
sail-mysql:
driver: local
sail-redis:
driver: local
sail-meilisearch:
driver: local
Content type
Image
Digest
sha256:906b70cd4…
Size
166.5 MB
Last updated
over 2 years ago
docker pull ferilagi/invis