2024-04-25 19:56:34 +05:00
|
|
|
version: '3.7'
|
2023-03-05 20:14:04 +06:00
|
|
|
services:
|
|
|
|
web:
|
2024-04-25 19:56:34 +05:00
|
|
|
image: nginx:alpine3.18-slim
|
2023-03-05 20:14:04 +06:00
|
|
|
volumes:
|
2024-04-25 19:56:34 +05:00
|
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
2023-03-05 20:14:04 +06:00
|
|
|
ports:
|
2024-04-25 19:56:34 +05:00
|
|
|
- ${DOCKER_NGINX_PORT}:80
|
2023-03-05 20:14:04 +06:00
|
|
|
depends_on:
|
2023-06-28 21:43:39 +06:00
|
|
|
- db
|
2023-03-05 20:14:04 +06:00
|
|
|
- redis
|
2023-06-28 21:43:39 +06:00
|
|
|
- app
|
2023-03-05 20:14:04 +06:00
|
|
|
app:
|
2024-04-25 19:56:34 +05:00
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: DEVELOP
|
2023-03-05 20:14:04 +06:00
|
|
|
volumes:
|
2024-04-25 19:56:34 +05:00
|
|
|
- ./app/application:/var/www/html
|
2023-03-05 20:14:04 +06:00
|
|
|
redis:
|
|
|
|
image: redis:3.0-alpine
|
2023-06-28 21:43:39 +06:00
|
|
|
db:
|
|
|
|
image: mysql:8.0.33
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
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:
|
2024-04-25 19:56:34 +05:00
|
|
|
- ./db/data:/var/lib/mysql
|
2023-08-23 01:02:56 +06:00
|
|
|
swagger:
|
|
|
|
image: swaggerapi/swagger-ui
|
|
|
|
environment:
|
|
|
|
URLS: "[ { url: '/swagger.json', name: '/swagger.json' } ]"
|
|
|
|
BASE_URL: /api-docs
|
2024-04-25 19:56:34 +05:00
|
|
|
|
|
|
|
artisan:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: ARTISAN
|
|
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
|
|
|
- ./app/application:/var/www/html
|
|
|
|
|
|
|
|
composer:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: COMPOSER
|
|
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
|
|
|
- ./app/application:/var/www/html
|
|
|
|
|
|
|
|
npm:
|
|
|
|
build:
|
|
|
|
context: app
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
target: NPM
|
|
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
|
|
|
- ./app/application:/var/www/html
|