-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yaml
196 lines (181 loc) · 4.73 KB
/
docker-compose.yaml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
version: '3.2'
services:
proxy:
image: traefik:1.7.2-alpine
restart: always
volumes:
- ./traefik/traefik.toml.template:/traefik.toml.template
#- ./traefik/traefik.dev.toml:/traefik.dev.toml # Uncomment for development
- ./traefik/acme.json:/acme.json
- ./cca-operator/templater.sh:/templater.sh
- ./docker-compose/traefik-secrets.sh:/traefik-secrets.sh
- ./traefik/entrypoint.sh:/entrypoint.sh
networks:
- ckan-multi
entrypoint: ["/bin/sh", "-c", "/entrypoint.sh"]
varnish:
image: million12/varnish
depends_on:
- ckan
volumes:
- ./varnish:/etc/varnish
expose:
- "80"
networks:
- ckan-multi
redis:
image: redis:alpine
restart: always
expose:
- "6379"
networks:
- ckan-multi
nginx:
depends_on:
- ckan
image: viderum/ckan-cloud-docker:nginx-latest
build:
context: nginx
restart: always
expose:
- "8080"
networks:
- ckan-multi
adminer:
image: adminer
restart: always
expose:
- "8080"
networks:
- ckan-multi
jobs:
depends_on:
- ckan
- nginx
image: viderum/ckan-cloud-docker:ckan-latest
command: [/ckan-entrypoint.sh, ckan, -c, /etc/ckan/ckan.ini, jobs, worker]
restart: always
volumes:
- ./docker-compose/ckan-secrets.sh:/etc/ckan-conf/secrets/secrets.sh
- ./docker-compose/ckan-conf-templates:/etc/ckan-conf/templates
- ckan-data:/var/lib/ckan
environment:
- CKAN_STORAGE_PATH=/var/lib/ckan/data
- CKAN_K8S_SECRETS=/etc/ckan-conf/secrets/secrets.sh
- CKAN_K8S_TEMPLATES=/etc/ckan-conf/templates
networks:
- ckan-multi
solr:
image: ckan/ckan-solr:${SOLR_IMAGE:-2.10-solr9}
restart: always
expose:
- "8983"
volumes:
- solr:/var/solr
networks:
- ckan-multi
datapusher:
build:
context: .
dockerfile: ${DATAPUSHER_DIRECTORY:-datapusher}/Dockerfile
args:
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple/}
expose:
- "8800"
networks:
- ckan-multi
environment:
- WRITE_ENGINE_URL=postgresql://postgres:123456@datastore-db/datastore
- SQLALCHEMY_DATABASE_URI=postgresql://postgres:123456@datastore-db/datapusher_jobs
ckan:
depends_on:
- redis
- solr
image: viderum/ckan-cloud-docker:ckan-latest
build:
context: ckan
args:
CKAN_BRANCH: ${CKAN_BRANCH:-ckan-2.10.4}
CKAN_REPO: ${CKAN_REPO:-ckan/ckan}
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple/}
restart: always
volumes:
- ./docker-compose/ckan-secrets.sh:/etc/ckan-conf/secrets/secrets.sh
- ./docker-compose/ckan-conf-templates:/etc/ckan-conf/templates
- ckan-data:/var/lib/ckan
- ./migrate_databases.sh:/usr/lib/ckan/migrate_databases.sh
- ./migrate_filestorage.sh:/usr/lib/ckan/migrate_filestorage.sh
environment:
- CKAN_STORAGE_PATH=/var/lib/ckan/data
- CKAN_K8S_SECRETS=/etc/ckan-conf/secrets/secrets.sh
- CKAN_K8S_TEMPLATES=/etc/ckan-conf/templates
- GUNICORN_WORKERS=2
expose:
- "5000"
networks:
- ckan-multi
jenkins:
image: viderum/ckan-cloud-docker:jenkins-latest
build:
context: jenkins
restart: always
volumes:
- ./jenkins/jobs:/var/jenkins_home/jobs
- .:/etc/ckan-cloud/ckan-cloud-docker
- /var/run/docker.sock:/var/run/docker.sock
- ./jenkins/scripts/docker_compose_cca_operator.sh:/etc/ckan-cloud/cca_operator.sh
ports:
- "8089:8080"
networks:
- cloud-management
cca-operator:
image: viderum/ckan-cloud-docker:cca-operator-latest
build:
context: cca-operator
command: ./server.sh
restart: always
volumes:
- /etc/ckan-cloud:/etc/ckan-cloud
ports:
- "8022:22"
networks:
- cloud-management
- ckan-multi
provisioning-api-db:
image: postgres
restart: always
ports:
- "5439:5432"
env_file:
- docker-compose/provisioning-api-db-secrets.sh
volumes:
- provisioning-api-db:/var/lib/postgresql/data
networks:
- cloud-management
provisioning-api:
depends_on:
- provisioning-api-db
- cca-operator
image: viderum/ckan-cloud-provisioning-api:latest
restart: always
env_file:
- docker-compose/provisioning-api-secrets.sh
environment:
- INSTANCE_MANAGER=root@cca-operator
- PRIVATE_SSH_KEY
- PRIVATE_KEY
- PUBLIC_KEY
- GITHUB_KEY
- GITHUB_SECRET
- EXTERNAL_ADDRESS=http://localhost:8092
ports:
- "8092:8000"
networks:
- cloud-management
volumes:
ckan-data:
solr:
provisioning-api-db:
networks:
ckan-multi:
cloud-management: