forked from GSA/catalog.data.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
107 lines (97 loc) · 2.31 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
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
version: "3"
services:
ckan:
image: ghcr.io/gsa/catalog.data.gov:latest
command: /app/ckan/setup/ckan_setup.sh
env_file: .env
depends_on:
- db
- solr
- redis
ports:
- "0.0.0.0:${PORT}:5000"
volumes:
- ./src:/srv/app/src_extensions
- ckan_storage:/var/lib/ckan
- .:/app
db:
env_file:
- .env
image: ghcr.io/gsa/catalog.data.gov.db:latest
volumes:
- pg_data:/var/lib/postgresql/data
solr:
image: ghcr.io/gsa/catalog.data.gov.solr:8-curl
environment:
- ZK_HOST=zookeeper1:2181,zookeeper2:2182,zookeeper3:2183
# ports:
# - "8983:8983"
deploy:
replicas: 3
depends_on:
- zookeeper1
- zookeeper2
- zookeeper3
# volumes:
# - solr_data:/var/solr
zookeeper1:
image: zookeeper:3.7
restart: always
ports:
- 2181:2181
hostname: zookeeper1
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=zookeeper3:2888:3888;2181
volumes:
- zookeeperdata:/data
- zookeeperdatalog:/datalog
zookeeper2:
image: zookeeper:3.7
restart: always
ports:
- 2182:2181
hostname: zookeeper2
environment:
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=zookeeper1:2888:3888;2181 server.2=0.0.0.0:2888:3888;2181 server.3=zookeeper3:2888:3888;2181
volumes:
- zookeeperdata2:/data
- zookeeperdatalog2:/datalog
zookeeper3:
image: zookeeper:3.7
restart: always
ports:
- 2183:2181
hostname: zookeeper3
environment:
ZOO_MY_ID: 3
ZOO_SERVERS: server.1=zookeeper1:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=0.0.0.0:2888:3888;2181
volumes:
- zookeeperdata3:/data
- zookeeperdatalog3:/datalog
redis:
image: redis:alpine
nginx:
image: nginx
links:
- ckan
ports:
- "8443:443"
volumes:
- ./nginx:/nginx
- ./nginx/nginx.conf:/etc/nginx/conf.d/ckan.conf
nginx-harvest-source:
image: nginx
volumes:
- ./tests/harvest-sources:/usr/share/nginx/html
- ./tests/nginx.conf:/etc/nginx/conf.d/default.conf
volumes:
ckan_storage:
pg_data:
zookeeperdata:
zookeeperdatalog:
zookeeperdata2:
zookeeperdatalog2:
zookeeperdata3:
zookeeperdatalog3: