forked from ec-europa/joinup-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (90 loc) · 2.37 KB
/
docker-compose.yml
File metadata and controls
99 lines (90 loc) · 2.37 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.4'
services:
# This image allows XDebug to connect to the host machine. This can be removed
# when https://github.com/docker/for-linux/issues/264 is fixed.
dockerhost:
image: qoomon/docker-host
cap_add:
- NET_ADMIN
- NET_RAW
environment:
- PORTS=0:1024,9000
web:
depends_on:
- dockerhost
build:
context: ./resources/docker/web
ports:
- "8080:80"
volumes:
- .:/var/www/html
- ./build.docker.main.xml:/var/www/html/build.xml
environment:
XDEBUG_CONFIG: "extension=xdebug.so remote_enable=1 remote_connect_back=1 remote_host=http://dockerhost remote_port=9000 idekey=PHPSTORM remote_autostart=0"
DOCUMENT_ROOT: "/var/www/html/web"
PHP_XDEBUG_ENABLED: "1"
PHP_IDE_CONFIG: "serverName=Docker"
PHP_SENDMAIL_PATH: "/usr/sbin/sendmail -t -i -S mail:1025"
# This will compile the CSS once when docker-compose is started.
sass:
image: pablofelix/sass
volumes:
- $PWD:/app/
entrypoint:
- watch
- -t compressed
- /app/web/themes/joinup/prototype/sass/app.sass
- /app/web/themes/joinup/css/style.min.css
mysql:
image: mysql:5.6
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_USER: 'db_user'
MYSQL_PASSWORD: 'db_pass'
MYSQL_DATABASE: 'db_name'
virtuoso:
image: tenforce/virtuoso
environment:
- SPARQL_UPDATE=true
- DBA_PASSWORD=dba
volumes:
- "virtuoso:/data"
ports:
- "8890:8890"
mail:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
selenium:
image: selenium/standalone-chrome-debug:3.11
ports:
- "5900:5900"
expose:
- "4440"
volumes:
# Needed due to chrome having issues with memory usage. Firefox does not face this issue.
# @see: https://github.com/elgalu/docker-selenium/issues/20
- "/dev/shm:/dev/shm"
solr_published:
build:
context: ./resources/docker/solr
ports:
- "8982:8983"
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- drupal_published
- "/opt/docker-solr/configsets/drupal"
solr_unpublished:
build:
context: ./resources/docker/solr
ports:
- "8983:8983"
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- drupal_unpublished
- "/opt/docker-solr/configsets/drupal"
volumes:
virtuoso: