-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (55 loc) · 1.36 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3"
services:
php:
build: docker/php-fpm
volumes:
- ./docker/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./docker/log/php-fpm:/var/log/php-fpm
- .:/var/www/html
links:
- db:db
nginx:
image: nginx:alpine
ports:
- ${DOCKER_APP_PORT-8000}:80
links:
- php:phpfpm
volumes:
- ./docker/nginx/conf.d:/etc/nginx/conf.d
- .:/var/www/html
- ./docker/log/nginx:/var/log/nginx
db:
image: mariadb:10.5
ports:
- ${DOCKER_DATABASE_PORT-3306}:3306
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
volumes:
- ./docker/mysql/databases:/var/lib/mysql
composer:
image: composer:1.10
working_dir: /var/www/html
volumes:
- .:/var/www/html
command: composer install --ignore-platform-reqs --no-scripts
phpcs:
build: docker/phpcs
volumes:
- .:/var/www/html
swagger:
image: swaggerapi/swagger-ui
environment:
SWAGGER_JSON: /mnt/swagger.yml
ports:
- ${DOCKER_SWAGGER_PORT-8091}:8080
volumes:
- .:/mnt
rabbitmq:
image: rabbitmq:3.8-management
ports:
- ${DOCKER_RABBITMQ_UI_PORT-15672}:15672
- ${DOCKER_RABBITMQ_PORT-5672}:5672
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}