service-captcha/docker-compose.yml

48 lines
1.4 KiB
YAML
Raw Normal View History

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:
- db
2023-03-05 20:14:04 +06:00
- redis
- 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
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
adminer:
image: adminer
#restart: always
ports:
- ${DOCKER_ADMINER_PORT}:8080