-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.11 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
version: '2.1'
services:
base:
image: "${REGISTRY_HOST}${REGISTRY_URI}/base:latest"
build:
context: .
dockerfile: Dockerfile.base
main:
build: .
image: "${REGISTRY_HOST}${REGISTRY_URI}:${TAG:-master}"
env_file:
- .env.development
- .env
stdin_open: true
tty: true
volumes:
- .:/home/app/webapp:delegated
web:
extends: main
environment:
VIRTUAL_HOST: ngao.docker
VIRTUAL_PORT: 3000
depends_on:
- dj
- solr
- db
dj:
extends: main
command: bash -l -c "yarn install && bin/rails jobs:work"
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: