-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (82 loc) · 1.93 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
services:
newspapers-lib-unb-ca:
build:
context: .
restart: unless-stopped
container_name: newspapers-lib-unb-ca
depends_on:
- drupal-mysql-lib-unb-ca
- drupal-redis-lib-unb-ca
- drupal-solr-lib-unb-ca
expose:
- "80"
ports:
- "3095:80"
networks:
- newspapers.lib.unb.ca
env_file:
- ./env/drupal.env
environment:
- DRUPAL_IMPORT_CONTENT=TRUE
volumes:
- drupal-data:/app/html/sites/default
- ./configuration:/app/configuration
- ./custom/modules:/app/html/modules/custom
- ./custom/themes:/app/html/themes/custom
- ./tests:/app/tests
drupal-mysql-lib-unb-ca:
image: mariadb:10.11
restart: unless-stopped
command: mysqld --skip-name-resolve --max_allowed_packet=64M
env_file:
- ./env/mysql.env
expose:
- "3306"
networks:
- newspapers.lib.unb.ca
volumes:
- mysql-data:/var/lib/mysql
drupal-redis-lib-unb-ca:
image: redis:7-alpine
restart: unless-stopped
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 128mb
expose:
- "6379"
networks:
- newspapers.lib.unb.ca
env_file:
- ./env/redis.env
drupal-solr-lib-unb-ca:
image: ghcr.io/unb-libraries/solr-drupal:8.x-4.x
restart: unless-stopped
env_file:
- ./env/solr.env
expose:
- "8983"
networks:
- newspapers.lib.unb.ca
entrypoint:
- docker-entrypoint-multiple.sh
- newspapers.lib.unb.ca:/solr-conf
- pages.newspapers.lib.unb.ca:/solr-conf
volumes:
- solr-data:/opt/solr/server/solr/mycores
mailhog:
image: mailhog/mailhog
restart: unless-stopped
expose:
- "1025"
- "8025"
ports:
- "4095:8025"
networks:
- newspapers.lib.unb.ca
profiles:
- mailhog
networks:
newspapers.lib.unb.ca:
name: newspapers.lib.unb.ca
volumes:
drupal-data:
mysql-data:
solr-data: