forked from IUBLibTech/archives_online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
101 lines (94 loc) · 1.97 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
x-app: &app
build:
context: .
target: base
args:
BUILDKIT_INLINE_CACHE: 1
cache_from:
- ghcr.io/scientist-softserv/archives_online/base:latest
- ghcr.io/scientist-softserv/archives_online:latest
image: ghcr.io/scientist-softserv/archives_online:${TAG:-latest}
env_file:
- .env
volumes:
- .:/home/app/webapp
- node_modules:/home/app/webapp/node_modules
- tmp:/home/app/webapp/tmp
- public:/app/samvera/hyrax-webapp/public
networks:
internal:
volumes:
mysql:
node_modules:
public:
solr:
tmp:
networks:
internal:
services:
base:
<<: *app
image: ghcr.io/scientist-softserv/archives_online/base:${TAG:-latest}
build:
context: .
target: base
cache_from:
- ghcr.io/scientist-softserv/archives_online/base:latest
args:
BUILDKIT_INLINE_CACHE: 1
web:
<<: *app
build:
context: .
target: web
expose:
- 3000
environment:
- VIRTUAL_HOST=archives-online.test
- VIRTUAL_PORT=80
volumes:
- ./generate-init.sh:/home/app/webapp/generate-init.sh
depends_on:
- mysql
- solr
mysql:
platform: linux/amd64
image: mysql:8.4.2
env_file:
- .env
expose:
- 3306
volumes:
- mysql:/var/lib/mysql
# - ./generate-init.sh:/docker-entrypoint-initdb.d/generate-init.sh
networks:
- internal
mailhog:
image: mailhog/mailhog
environment:
- VIRTUAL_PORT=8025
- VIRTUAL_HOST=mailhog.archives-online.test
ports:
- "8025:8025"
networks:
- internal
solr:
image: solr:8.3
env_file:
- .env
environment:
- VIRTUAL_PORT=8983
- VIRTUAL_HOST=solr.archives-online.test
expose:
- 8983
volumes:
- './solr/conf:/opt/solr/conf'
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- ${SOLR_CORE}
- /opt/solr/conf
- "-Xms256m"
- "-Xmx512m"
networks:
- internal