-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
75 lines (66 loc) · 1.96 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
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3.1"
services:
mysql:
image: mysql:5.7.22
container_name: bsa-app-mysql
working_dir: /application
volumes:
- .:/application
- .mysqldata:/var/lib/mysql
- ./docker/mysql:/etc/mysql/conf.d
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=hedonist
- MYSQL_USER=test-user
- MYSQL_PASSWORD=secret
webserver:
image: nginx:stable-alpine
container_name: bsa-app-webserver
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/ssl:/etc/nginx/ssl
php-fpm:
build: ./docker/php-fpm
container_name: bsa-app-php
working_dir: /application
volumes:
- .:/application
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
beanstalkd:
image: schickling/beanstalkd
container_name: bsa-app-beanstalkd
php-worker:
build:
context: ./docker/php-worker
args:
- "PHP_VERSION=${PHP_VERSION}"
working_dir: /application
container_name: bsa-app-php-worker
volumes:
- .:/application
- ./docker/php-worker/supervisord.d:/etc/supervisord.d
- .queue:/queue
rabbitmq:
build: ./docker/rabbitmq
container_name: bsa-app-rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
redis:
image: redis:alpine
container_name: bsa-app-redis
volumes:
- .redis:/data
frontend:
build: ./docker/node
container_name: bsa-app-frontend
working_dir: /application
volumes:
- .:/application
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
container_name: bsa-app-elasticsearch
volumes:
- .elasticdata:/usr/share/elasticsearch/data