-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
52 lines (46 loc) · 1.08 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
version: '3.8'
services:
mysql:
container_name: mysql
image: mysql:8.0
command: --sort_buffer_size=512K
volumes:
- ./docker/mysql/mysql.databases.sql:/docker-entrypoint-initdb.d/01-databases.sql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.8-management
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASS}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_VHOST}
php-cli:
build: ./docker/php-cli
container_name: php-cli
volumes:
- ./:/var/www/
working_dir: /var/www
php-fpm:
build: ./docker/php-fpm
container_name: php-fpm
volumes:
- ./:/var/www/
working_dir: /var/www
depends_on:
- mysql
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- '8080:80'
volumes:
- ./public/:/var/www/public/
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php-fpm