-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 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
version: "3"
services:
db:
container_name: ${PROJECT_NAME}-postgres
build:
context: postgres/
dockerfile: Dockerfile
args:
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
environment:
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGDATA=/var/lib/postgresql/data/db
volumes:
- type: volume
source: pg_data
target: /var/lib/postgresql/data
ports:
- "5432:5432"
solr:
container_name: ${PROJECT_NAME}-solr
build:
context: solr/
dockerfile: Dockerfile
ports:
- "8983:8983"
volumes:
- type: volume
source: solr_data
target: /opt/solr/server/solr/ckan/data/index
redis:
container_name: ${PROJECT_NAME}-redis
image: redis:alpine
ports:
- "6379:6379"
volumes:
pg_data:
external: false
name: ${PROJECT_NAME}-pg_data
solr_data:
external: false
name: ${PROJECT_NAME}-solr_data