-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (60 loc) · 1.89 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
version: '2'
services:
db:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ${PWD}/var/lib/mysql56-data:/var/lib/mysql
networks:
- jedisjeux
php:
build: ${PWD}/.docker/php
volumes:
- jedisjeux:/var/www/jedisjeux
environment:
- JEDISJEUX_DATABASE_HOST=db
- JEDISJEUX_DATABASE_NAME=${MYSQL_DATABASE}
- JEDISJEUX_DATABASE_USER=${MYSQL_USER}
- JEDISJEUX_DATABASE_PASSWORD=${MYSQL_PASSWORD}
- PHP_DATE_TIMEZONE=${TIMEZONE}
- PHP_MEMORY_LIMIT=2048M
- JDJ_APP_DEV_PERMITTED=true
- PHP_XDEBUG_REMOTE_AUTOSTART=${PHP_XDEBUG_REMOTE_AUTOSTART}
- PHP_XDEBUG_REMOTE_ENABLE=${PHP_XDEBUG_REMOTE_ENABLE}
networks:
- jedisjeux
working_dir: /var/www/jedisjeux
nginx:
image: nginx:latest
volumes:
- ${PWD}/.docker/nginx/upstream.conf:/etc/nginx/conf.d/upstream.conf
- ${PWD}/.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- jedisjeux:/var/www/jedisjeux
ports:
- "${WEB_UI_PORT}:8080" # The Web UI (enabled by --api)
- "${HTTP_PORT}:80" # The HTTP port
networks:
- jedisjeux
elk:
image: willdurand/elk:kibana-5.x
ports:
- 82:80
- ${TCP_UDP_PORT}:9200
volumes:
- ./elk/logstash:/etc/logstash
- ./elk/logstash/patterns:/opt/logstash/patterns
volumes_from:
- php
- nginx
volumes:
jedisjeux:
driver_opts:
type: none
device: $PWD/jedisjeux
o: bind
networks:
jedisjeux: ~