-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.demo.yml
57 lines (49 loc) · 1.23 KB
/
docker-compose.demo.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
# Full docker-compose for demoing development environment
# To use, you must pass in the `-f` flag to docker-compose
# For example: docker-compose -f docker-compose.demo.yml up -d
version: "3.4"
services:
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_PASSWORD=mysecretpassword
volumes:
- postgres-data:/var/lib/postgresql/data
solr:
image: solr:8
volumes:
- solr-data:/opt/solr/server/solr/mycores
- ./solr/config:/config
- ./solr/scripts/solr-precreate-jupiter.sh:/docker-entrypoint-initdb.d/solr-precreate-jupiter.sh
redis:
image: redis:alpine
web: &app_base
image: jupiter_development
build:
context: .
environment:
- RAILS_ENV=development
- DB_HOST=postgres
- DB_USER=postgres
- DB_PASSWORD=mysecretpassword
- SOLR_URL=http://solr:8983/solr/development
- SOLR_TEST_URL=http://solr:8983/solr/test
- REDIS_URL=redis://redis/1
ports:
- "3000:3000"
links:
- solr
- postgres
- redis
volumes:
- .:/app
command: bin/docker-start
worker:
<<: *app_base
command: bundle exec sidekiq
ports: []
depends_on:
- web
volumes:
postgres-data:
solr-data: