-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
141 lines (133 loc) · 3.9 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
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
version: "3"
volumes:
ckan_storage:
ckan_translations:
pg_data:
solr_data:
networks:
ckan-internal:
name: ckan-local
services:
ckan:
container_name: ckan
image: "${INTERNAL_REG}/ckan-container/ckan:${CKAN_VERSION}-debug"
build:
context: .
target: debug
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- INTERNAL_REG=${INTERNAL_REG}
- PYTHON_IMG_TAG=${PYTHON_IMG_TAG}
- CKAN_VERSION=${CKAN_VERSION}
- MAINTAINER=${MAINTAINER}
extra_hosts:
mail.wsl.ch: 10.30.1.224
depends_on:
- db
- solr
- redis
environment:
CKAN_INI: "/opt/ckan/ckan.ini"
# OTEL_LOG_LEVEL: debug
# OTEL_RESOURCE_ATTRIBUTES: "service.name=ckan-local-dev"
# OTEL_TRACES_EXPORTER: "otlp_proto_http"
# OTEL_METRICS_EXPORTER: "otlp_proto_http"
# OTEL_LOGS_EXPORTER: "otlp_proto_http"
# OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
# OTEL_EXPORTER_OTLP_ENDPOINT: "https://traces.envidat.ch"
# OTEL_PYTHON_LOG_CORRELATION: "True"
# OTEL_PYTHON_LOG_FORMAT:
# OTEL_PYTHON_LOG_LEVEL:
volumes:
- ckan_storage:/opt/ckan/data
- ./config/ckan.ini:/opt/ckan/ckan.ini
- ckan_translations:/usr/lib/ckan/.local/lib/python3.10/site-packages/ckan/public/base/i18n
# - ./ckan:/usr/lib/ckan/.local/lib/python3.10/site-packages/ckan
# - ./ckanext/passwordless_api:/usr/lib/ckan/.local/lib/python3.10/site-packages/ckanext/passwordless_api
# - ./ckanext/restricted_api:/usr/lib/ckan/.local/lib/python3.10/site-packages/ckanext/restricted_api
# - ./ckanext/cloudstorage_api:/usr/lib/ckan/.local/lib/python3.10/site-packages/ckanext/cloudstorage_api
networks:
- ckan-internal
restart: unless-stopped
proxy:
container_name: ckan_proxy
image: "${INTERNAL_REG}/ckan-container/proxy:${NGINX_IMG_TAG}-main"
build:
context: ./nginx
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- NGINX_IMG_TAG=${NGINX_IMG_TAG}
- MAINTAINER=${MAINTAINER}
depends_on:
- ckan
environment:
- CKAN_HOST=ckan:5000
- AUTH_COOKIE_NAME=envidat_local
ports:
- "8989:80"
networks:
- ckan-internal
restart: unless-stopped
db:
container_name: ckan_db
image: "${INTERNAL_REG}/ckan-container/db:${POSTGRES_IMG_TAG}-main"
build:
context: ./postgresql
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- POSTGRES_IMG_TAG=${POSTGRES_IMG_TAG}
- MAINTAINER=${MAINTAINER}
environment:
- POSTGRES_PASSWORD=ai4ncF6GpHokPaNmW25UftzMjM7hrC
- PGDATA=/var/lib/postgresql/data/db
env_file:
- ${DB_ENV_FILE:-.db.env}
volumes:
- pg_data:/var/lib/postgresql/data
extra_hosts:
pgdboapp.wsl.ch: 10.30.1.156
networks:
- ckan-internal
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
ports:
- "25432:5432"
restart: unless-stopped
solr:
container_name: ckan_solr
image: "${INTERNAL_REG}/ckan-container/solr:${SOLR_IMG_TAG}-main"
build:
context: ./solr
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- SOLR_IMG_TAG=${SOLR_IMG_TAG}
- MAINTAINER=${MAINTAINER}
volumes:
- solr_data:/var/solr/data
networks:
- ckan-internal
ports:
- "8988:8983"
restart: unless-stopped
init-solr:
container_name: ckan_init_solr
image: "${INTERNAL_REG}/ckan-container/init-solr:${SOLR_IMG_TAG}-main"
build:
context: ./init_solr
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- MAINTAINER=${MAINTAINER}
environment:
SOLR_HOST: http://solr:8983
SOLR_ADMIN_PASS: 4hAYTQkUD6REA3futeKsvUjvK9wETG
SOLR_CKAN_PASS: MPnJRcGVGurpJF3kWq2eFNDEr3cXv6
networks:
- ckan-internal
depends_on:
- solr
redis:
container_name: ckan_redis
image: redis:${REDIS_IMG_TAG}
networks:
- ckan-internal
restart: unless-stopped