first commit
This commit is contained in:
46
docker-compose.yaml
Normal file
46
docker-compose.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
web:
|
||||
image: webdevops/php-apache-dev:${PHP_VERSION}
|
||||
platform: linux/amd64
|
||||
volumes:
|
||||
- "./src:/web"
|
||||
- "./scripts:/scripts"
|
||||
- "./module:/module"
|
||||
- ./docker/apache2/cors.conf:/opt/docker/etc/httpd/vhost.common.d/cors.conf
|
||||
ports:
|
||||
- "8000:80"
|
||||
restart: always
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
environment:
|
||||
- WEB_DOCUMENT_ROOT=/web/upload
|
||||
- PHP_DISPLAY_ERRORS=1
|
||||
- XDEBUG_IDE_KEY=PHPSTORM
|
||||
- XDEBUG_START_WITH_REQUEST=yes
|
||||
- XDEBUG_CLIENT_HOST=host.docker.internal
|
||||
- XDEBUG_CLIENT_PORT=9003
|
||||
- XDEBUG_DISCOVER_CLIENT_HOST=false
|
||||
- PHP_IDE_CONFIG=serverName=orbstack
|
||||
|
||||
mysql:
|
||||
image: mariadb:10.2.7
|
||||
platform: linux/amd64
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=secret
|
||||
- MYSQL_DATABASE=ocstore3
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- ./sql_dumps:/sql_dumps
|
||||
- ./docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
Reference in New Issue
Block a user