forked from UCLALibrary/oral-history
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (66 loc) · 1.41 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
version: '2.2'
services:
postgres:
image: postgres:15
env_file:
- .env
- .env.development
ports:
- "5432"
volumes:
- 'postgres:/var/lib/postgresql/data'
solr:
build: ./solr
ports:
- "8983:8983"
environment:
- SOLR_HEAP=4g
- SOLR_HOME=/solr_home
- SOLR_CONFIG_DIR=/solr_conf
volumes:
- solr:/solr_home
web:
build:
context: .
target: web
cache_from:
- "${REGISTRY_HOST}${REGISTRY_URI}/oral-history:${TAG}"
image: "${REGISTRY_HOST}${REGISTRY_URI}/oral-history:${TAG}"
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
ports:
- "${DOCKER_PORTS}"
- "8000:80"
environment:
- VIRTUAL_HOST=oralhistory.test
- VIRTUAL_PORT=80
depends_on:
- postgres
- solr
- worker
worker:
build:
context: .
target: web
cache_from:
- "${REGISTRY_HOST}${REGISTRY_URI}/oral-history:${TAG}"
env_file:
- .env
- .env.development
volumes:
- .:/home/app/webapp
command: bin/delayed_job run
depends_on:
- postgres
- solr
volumes:
postgres:
solr: