-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.main.yml
108 lines (102 loc) · 2.77 KB
/
docker-compose.main.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
volumes:
ckan_storage:
ckan_translations:
solr_data:
networks:
ckan-microservices:
name: envidat
ckan-internal:
name: ckan-prod
services:
ckan:
container_name: ckan_main
#image: "${INTERNAL_REG}/ckan-container/ckan:${CKAN_VERSION}-main"
image: "${INTERNAL_REG}/ckan-container/ckan:2.9-backup"
build:
context: .
target: prod
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- INTERNAL_REG=${INTERNAL_REG}
- PYTHON_IMG_TAG=${PYTHON_IMG_TAG}
- CKAN_VERSION=${CKAN_VERSION}
- MAINTAINER=${MAINTAINER}
depends_on:
- solr
- redis
environment:
CKAN_INI: "/opt/ckan/ckan.ini"
# OTEL_LOG_LEVEL: debug
# OTEL_RESOURCE_ATTRIBUTES: "service.name=ckan-docker"
# 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
- $HOME/config/ckan/main.ini:/opt/ckan/ckan.ini
- ckan_translations:/usr/lib/ckan/.local/lib/python3.10/site-packages/ckan/public/base/i18n
networks:
- ckan-internal
restart: unless-stopped
proxy:
container_name: ckan_main_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
ports:
- "8080:80"
networks:
- ckan-internal
restart: unless-stopped
solr:
container_name: ckan_main_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:
- "8090:8983"
restart: unless-stopped
init-solr:
container_name: ckan_main_init_solr
image: "${INTERNAL_REG}/ckan-container/init-solr:${SOLR_IMG_TAG}-main"
build:
context: ./init_solr
args:
- EXTERNAL_REG=${EXTERNAL_REG}
- MAINTAINER=${MAINTAINER}
env_file:
- .solr.env
environment:
SOLR_HOST: http://solr:8983
networks:
- ckan-internal
depends_on:
- solr
redis:
container_name: ckan_main_redis
image: redis:${REDIS_IMG_TAG}
networks:
- ckan-internal
restart: unless-stopped