-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
60 lines (59 loc) · 1.37 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
version: '3.3'
services:
app:
image: thecodingmachine/php:7.2-v1-apache-node6
env_file:
- .env
environment:
PHP_EXTENSION_MONGODB: '1'
PHP_EXTENSION_XDEBUG: 1
PHP_INI_MEMORY_LIMIT: 256M
PHP_IDE_CONFIG: "serverName=Docker"
XDEBUG_CONFIG: "remote_autostart=1"
PHP_INI_XDEBUG__MAX_NESTING_LEVEL: 2000
STARTUP_COMMAND_1: composer install
STARTUP_COMMAND_2: cd src/views/ && npm install
volumes:
- type: bind
source: ./.
target: /var/www/html
read_only: false
- type: volume
source: downloads
target: /var/downloads
read_only: false
labels:
traefik.enable: 'true'
traefik.backend: app
traefik.frontend.rule: Host:packanalyst.localhost
traefik.port: '80'
traefik:
image: traefik:1.6
command:
- --docker
- --docker.exposedbydefault=false
ports:
- 80:80
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
read_only: false
mongo:
image: mongo:3.6
volumes:
- type: volume
source: mongodata
target: /data/db
read_only: false
elasticsearch:
image: elasticsearch:2.2
volumes:
- type: volume
source: elasticsearchdata
target: /usr/share/elasticsearch/data
read_only: false
volumes:
downloads:
mongodata:
elasticsearchdata: