-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.35 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
version: '3.8'
x-app: &app
build:
context: .
target: web
image: ghcr.io/scientist-softserv/arce:${TAG:-latest}
volumes:
- .:/home/app/webapp
env_file:
- .env
# 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
services:
postgres:
image: postgres
env_file:
- .env
ports:
- 5432
volumes:
- postgres:/var/lib/postgresql/data
web:
<<: *app
env_file:
- .env
# 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
environment:
- VIRTUAL_HOST=arce.test
- VIRTUAL_PORT=80
depends_on:
- postgres
- solr
- worker
ports:
- 80
worker:
<<: *app
env_file:
- .env
command: bin/delayed_job run
depends_on:
- postgres
- solr
solr:
build:
context: ./solr
target: solr
image: ghcr.io/scientist-softserv/arce/solr:${TAG:-latest}
env_file:
- .env
environment:
- SOLR_HEAP=4g
volumes:
- solr:/solr_home
ports:
- 8983
volumes:
postgres:
solr: