forked from IUBLibTech/ngao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.06 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
version: '2.1'
services:
base:
image: "${REGISTRY_HOST}${REGISTRY_URI}/base:latest"
build:
context: .
dockerfile: Dockerfile.base
web:
build: .
image: "${REGISTRY_HOST}${REGISTRY_URI}:${TAG:-master}"
env_file:
- .env
- .env.development
volumes:
- .:/home/app/webapp
# Keep the stdin open, so we can attach to our app container's process
# and do things such as byebug, etc:
stdin_open: true
# Enable sending signals (CTRL+C, CTRL+P + CTRL+Q) into the container:
tty: true
depends_on:
- solr
- db
db:
image: mysql:5.7
ports:
- '3306'
volumes:
- mysql:/var/lib/mysql
env_file:
- .env
- .env.development
solr:
image: solr:8
ports:
- "8983"
volumes:
- './solr/conf:/opt/config:delegated'
- solr:/opt/solr/server/solr/mycores
env_file:
- .env.development
- .env
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- "${SOLR_CORE}"
- /opt/config
volumes:
mysql:
solr: