2024-04-02 22:16:29 +05:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: DEVELOP
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- app-redis
|
|
|
|
- captcha-app
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_APP_PORT}:9000
|
|
|
|
volumes:
|
2024-04-11 19:52:37 +05:00
|
|
|
- ./app/application:/var/www/html
|
2024-04-02 22:16:29 +05:00
|
|
|
app-redis:
|
|
|
|
image: redis:3.0-alpine
|
|
|
|
|
|
|
|
captcha-app:
|
|
|
|
image: korelf/service-captcha:0.7.0
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
- CHOWN
|
|
|
|
- FOWNER
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- captcha-redis
|
|
|
|
env_file: captcha-app/.env
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_CAPTCHA_PORT}:9000
|
|
|
|
captcha-redis:
|
|
|
|
image: redis:3.0-alpine
|
|
|
|
db:
|
|
|
|
image: docker.io/mysql:8.0.33
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
#restart: always
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_DB_PORT}:3306
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
|
|
MYSQL_DATABASE: ${DB_DATABASE}
|
|
|
|
MYSQL_USER: ${DB_USERNAME}
|
|
|
|
MYSQL_PASSWORD: ${DB_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- ./db/data:/var/lib/mysql
|
|
|
|
|
|
|
|
artisan:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: ARTISAN
|
|
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
2024-04-11 19:52:37 +05:00
|
|
|
- ./app/application:/var/www/html
|
2024-04-02 22:16:29 +05:00
|
|
|
|
|
|
|
composer:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: COMPOSER
|
|
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
2024-04-11 19:52:37 +05:00
|
|
|
- ./app/application:/var/www/html
|
2024-04-02 22:16:29 +05:00
|
|
|
|
|
|
|
npm:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: NPM
|
|
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
2024-04-11 19:52:37 +05:00
|
|
|
- ./app/application:/var/www/html
|