2023-03-05 20:14:04 +06:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: docker.angie.software/angie
|
|
|
|
volumes:
|
|
|
|
- ./docker/dev/angie/config/default.conf:/etc/angie/http.d/default.conf
|
|
|
|
- ./:/var/www/html
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_ANGIE_PORT}:80
|
|
|
|
#restart: always
|
|
|
|
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:
|
|
|
|
image: service-captcha-laravel
|
|
|
|
container_name: service-captcha-laravel-www
|
|
|
|
build: ./docker/dev/php
|
|
|
|
#restart: always
|
|
|
|
user: 1000:1000
|
|
|
|
volumes:
|
|
|
|
- ./docker/dev/php/config/php.ini:/usr/local/etc/php/conf.d/php.ini
|
|
|
|
- ./docker/dev/php/config/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
|
|
|
|
- ./:/var/www/html
|
|
|
|
expose:
|
|
|
|
- "9000"
|
|
|
|
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
|
|
|
|
#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:
|
|
|
|
- ./docker/dev/db:/var/lib/mysql
|
|
|
|
- ./docker/dev/my.cnf:/etc/mysql/conf.d/my.cnf
|
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
|
|
|
|
ports:
|
|
|
|
- "8080"
|
2023-06-28 21:43:39 +06:00
|
|
|
adminer:
|
|
|
|
image: adminer
|
|
|
|
#restart: always
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_ADMINER_PORT}:8080
|