Squashed commit message
Some checks failed
Telegram Mini App Shop Builder / Compute version metadata (push) Has been cancelled
Telegram Mini App Shop Builder / Run Frontend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run Backend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run PHP_CodeSniffer (push) Has been cancelled
Telegram Mini App Shop Builder / Build module. (push) Has been cancelled
Telegram Mini App Shop Builder / release (push) Has been cancelled
Some checks failed
Telegram Mini App Shop Builder / Compute version metadata (push) Has been cancelled
Telegram Mini App Shop Builder / Run Frontend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run Backend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run PHP_CodeSniffer (push) Has been cancelled
Telegram Mini App Shop Builder / Build module. (push) Has been cancelled
Telegram Mini App Shop Builder / release (push) Has been cancelled
This commit is contained in:
81
docker-compose.yaml
Normal file
81
docker-compose.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
services:
|
||||
web:
|
||||
image: webdevops/php-apache-dev:7.4
|
||||
platform: linux/amd64
|
||||
volumes:
|
||||
- "./src:/web"
|
||||
- "./scripts:/scripts"
|
||||
- "./module:/module"
|
||||
- "./build:/build"
|
||||
ports:
|
||||
- "8000:80"
|
||||
restart: always
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl" ,"-f", "http://localhost/index.php?route=extension/tgshop/handle&api_action=health" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
environment:
|
||||
- WEB_DOCUMENT_ROOT=/web/upload
|
||||
- PHP_DISPLAY_ERRORS=1
|
||||
- XDEBUG_IDE_KEY=PHPSTORM
|
||||
- XDEBUG_START_WITH_REQUEST=trigger
|
||||
- XDEBUG_CLIENT_HOST=host.docker.internal
|
||||
- XDEBUG_CLIENT_PORT=9003
|
||||
- XDEBUG_DISCOVER_CLIENT_HOST=false
|
||||
- PHP_IDE_CONFIG=serverName=acmeshop
|
||||
- php.session.gc_maxlifetime=28800
|
||||
- php.session.cookie_lifetime=0
|
||||
- MEGAPAY_REDIS_HOST=redis
|
||||
- MEGAPAY_REDIS_PORT=6379
|
||||
- MEGAPAY_REDIS_DATABASE=0
|
||||
depends_on:
|
||||
- mysql
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
||||
|
||||
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", "-u", "root", "-psecret" ]
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- ./sql_dumps:/sql_dumps
|
||||
- ./deployment/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||
|
||||
cron:
|
||||
image: ghcr.io/acme-inc/scheduler:latest
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
CRONTAB: |
|
||||
*/5 * * * * php /web/upload/cli.php schedule:run > /proc/1/fd/1
|
||||
volumes:
|
||||
- ./src:/web
|
||||
- ./scripts:/scripts
|
||||
- ./module:/module
|
||||
- ./build:/build
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
Reference in New Issue
Block a user