This repository was archived by the owner on Jun 13, 2023. It is now read-only.
forked from okfn/docker-ckan
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-2.7.yml
113 lines (104 loc) · 2.51 KB
/
docker-compose-2.7.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3"
services:
ckan-postdev:
container_name: ckan-2.7
image: govuk/ckan-postdev:2.7
build:
context: ckan-postdev/
dockerfile: 2.7/Dockerfile
args:
# set DISABLE_CRON to 1 to disable harvest & pycsw cronjobs (good idea when running tests)
- DISABLE_CRON=0
# set START_CKAN to 1 to start ckan and supervisord, 0 to prevent them from starting
# stopping ckan and background processes can be useful during development to investigate bugs
- START_CKAN=1
env_file:
- .env-2.7
links:
- db
- solr
- redis
ports:
- "0.0.0.0:3000:3000"
volumes:
- ./src/2.7:/srv/app/src_extensions
- ckan_storage:/var/lib/ckan
- ./logs/2.7:/var/log/ckan
depends_on:
- db
- solr
- redis
- static-mock-harvest-source
command: bash -c "/srv/app/start_ckan_development.sh"
networks:
- ckan-2.7
db:
container_name: db
env_file:
- .env-2.7
build:
context: postgresql/
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- ckan-2.7
solr:
container_name: solr
build:
context: solr/
ports:
- "8983:8983"
volumes:
- solr_data:/opt/solr/server/solr/ckan/data
networks:
- ckan-2.7
redis:
container_name: redis
image: redis:alpine
networks:
- ckan-2.7
volumes:
- redis_data:/data
nginx:
container_name: nginx
build:
context: nginx/
dockerfile: 2.7/Dockerfile
links:
- ckan-postdev
ports:
- 5000:80
volumes:
- ./logs/2.7:/var/log/nginx
networks:
- ckan-2.7
static-mock-harvest-source:
container_name: static-mock-harvest-source
build:
context: ./src/2.7/ckan-mock-harvest-sources/static/
ports:
- "11088:11088"
volumes:
- ./src/2.7/ckan-mock-harvest-sources/static/responses:/srv/responses
- ./src/2.7/ckan-mock-harvest-sources/static/mock-third-party:/src/mock-third-party
networks:
- ckan-2.7
dynamic-mock-harvest-source:
image: govuk/dynamic-mock-harvest-source:2.7
container_name: dynamic-mock-harvest-source
build:
context: ./src/2.7/ckan-mock-harvest-sources/dynamic/
ports:
- "8001:8001"
networks:
- ckan-2.7
volumes:
- ./src/2.7/ckan-mock-harvest-sources/dynamic:/srv/apps/dynamic-mock-harvest-source
volumes:
ckan_storage:
pg_data:
solr_data:
redis_data:
networks:
ckan-2.7:
driver: bridge