-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (85 loc) · 2.57 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
76
77
78
79
80
81
82
83
84
85
86
version: '3.7'
services:
mariadb:
image: mariadb
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "${MYSQL_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
postgres:
image: postgres
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
memcached:
image: memcached
entrypoint:
- memcached
- -m ${MEMCACHED_MEMORY}
expose:
- "11211"
redis:
image: redis
ports:
- "${REDIS_PORT}:6379"
php:
build: docker/php-fpm
ports:
- "${PHP_PORT}:9001"
expose:
- "9002"
volumes:
- ./config/php-pool:/etc/php7/php-fpm.d:cached
- ./apps/symfony:/var/www/symfony:cached
- ./logs/symfony:/var/www/symfony/var/log:cached
links:
- mariadb
- postgres
- memcached
- redis
extra_hosts:
- "docker-host.localhost:127.0.0.1"
nginx:
build: docker/nginx
ports:
- "${NGINX_PORT}:80"
links:
- php
volumes:
- ./config/nginx:/etc/nginx/conf.d:cached
- ./config/sites:/etc/nginx/sites-enabled:cached
- ./logs/nginx:/var/log/nginx:cached
- ./apps/symfony:/var/www/symfony:cached
elk:
image: willdurand/elk
ports:
- "${ELK_PORT}:80"
volumes:
- ./docker/logstash:/etc/logstash:cached
- ./docker/logstash/patterns:/opt/logstash/patterns:cached
- ./logs/symfony:/var/www/symfony/var/log:cached
- ./logs/nginx:/var/log/nginx:cached
adminer:
image: adminer
restart: on-failure
ports:
- "${ADMINER_PORT}:8080"
rabbitmq:
image: rabbitmq:management
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST}
ports:
- "${RABBITMQ_MANAGEMENT}:15672"
- "${RABBITMQ_PORT}:5672"
labels:
NAME: "rabbitmq1"