-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
64 lines (57 loc) · 1.83 KB
/
docker-compose.override.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
version: "3"
services:
php:
image: wodby/drupal-php:$PHP_TAG
environment:
ENVIRONMENT: docker
DOCROOT_SUBDIR: docroot
DRUPAL_SITE: default
PHP_FPM_CLEAR_ENV: "no"
PROJECT_BASE_URL: ${PROJECT_BASE_URL}
volumes:
- $CODEBASE:/var/www/html
- ./files/drushrc.php:/var/www/html/docroot/sites/default/drushrc.php
- ./files/init_drupal.sh:/usr/local/bin/init_drupal
- ./files/entrypoint-drupal.sh:/docker-entrypoint-init.d/20-drupal.sh
- files:/mnt/files
nginx:
environment:
NGINX_SERVER_ROOT: /var/www/html/docroot
volumes:
- $CODEBASE:/var/www/html
- ./files/drushrc.php:/var/www/html/docroot/sites/default/drushrc.php
- files:/mnt/files
labels:
- 'traefik.frontend.rule=Host:sci.${PROJECT_BASE_URL},media.${PROJECT_BASE_URL},industry.${PROJECT_BASE_URL},nrm.${PROJECT_BASE_URL},locomotion.${PROJECT_BASE_URL}'
node:
image: wodby/node:$NODE_TAG
container_name: "${PROJECT_NAME}_node"
working_dir: /var/www/html/docroot/themes/smg
labels:
- 'traefik.backend=${PROJECT_NAME}_node'
- 'traefik.port=3000'
- 'traefik.frontend.rule=Host:front.${PROJECT_BASE_URL}'
expose:
- "3000"
volumes:
- $CODEBASE:/var/www/html
- ./files/drushrc.php:/var/www/html/docroot/sites/default/drushrc.php
command: /bin/true
solr:
image: wodby/solr:$SOLR_TAG
container_name: "${PROJECT_NAME}_solr"
environment:
SOLR_DEFAULT_CONFIG_SET: $SOLR_CONFIG_SET
SOLR_HEAP: 1024m
SOLR_CORES: $SOLR_CORES
volumes:
- ./files/init_solr.sh:/docker-entrypoint-initdb.d/10-init.sh
labels:
- 'traefik.backend=${PROJECT_NAME}_solr'
- 'traefik.port=8983'
- 'traefik.frontend.rule=Host:solr.${PROJECT_BASE_URL}'
traefik:
ports:
- '80:80'
volumes:
files: