docker-ckan/docker-compose.yml

170 lines
3.0 KiB
YAML
Raw Normal View History

2022-07-12 10:44:55 +02:00
volumes:
ckan_storage:
ckan_logs:
2022-07-12 10:44:55 +02:00
pg_data:
solr_data:
2015-04-16 02:41:10 +02:00
services:
nginx:
build:
context: nginx/
dockerfile: Dockerfile
env_file:
- .env
2023-04-17 09:49:40 +02:00
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
networks:
2023-06-10 08:11:18 +02:00
- webnet
- ckannet
2022-07-14 11:40:02 +02:00
depends_on:
2024-04-24 12:50:02 +02:00
- ckan
ports:
2023-08-10 04:28:21 +02:00
- "0.0.0.0:${NGINX_PORT_HOST}:${NGINX_PORT}"
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
2022-07-12 16:04:31 +02:00
ckan:
build:
context: ckan/
dockerfile: Dockerfile
2022-07-12 16:04:31 +02:00
args:
- TZ=${TZ}
networks:
2023-06-10 08:11:18 +02:00
- ckannet
- dbnet
- solrnet
- redisnet
2022-07-13 12:47:48 +02:00
env_file:
- .env
2023-04-17 09:49:40 +02:00
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
2022-07-12 16:04:31 +02:00
depends_on:
2024-04-24 12:50:02 +02:00
- db
- solr
- redis
2022-07-12 16:04:31 +02:00
volumes:
- ckan_storage:/var/lib/ckan
- ckan_logs:/var/log
- /usr/lib/python3.9/site-packages
2022-07-12 16:04:31 +02:00
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:${CKAN_PORT}"
]
pycsw:
build:
context: ckan-pycsw/
dockerfile: Dockerfile
env_file:
- .env
2023-04-17 09:49:40 +02:00
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:5000"
]
2015-04-16 02:41:10 +02:00
2022-07-12 10:44:55 +02:00
db:
build:
context: postgresql/
networks:
2023-06-10 08:11:18 +02:00
- dbnet
2022-07-12 10:44:55 +02:00
environment:
2023-06-13 14:24:18 +02:00
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- CKAN_DB_USER
- CKAN_DB_PASSWORD
- CKAN_DB
- DATASTORE_READONLY_USER
- DATASTORE_READONLY_PASSWORD
- DATASTORE_DB
2022-07-12 10:44:55 +02:00
volumes:
- pg_data:/var/lib/postgresql/data
2023-04-17 09:49:40 +02:00
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
2022-07-12 10:44:55 +02:00
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"pg_isready",
"-U",
"${POSTGRES_USER}",
"-d",
"${POSTGRES_DB}"
]
2022-07-12 10:44:55 +02:00
solr:
build:
context: solr/
dockerfile: Dockerfile.spatial
networks:
2023-06-10 08:11:18 +02:00
- solrnet
env_file:
- .env
2023-04-17 09:49:40 +02:00
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
2023-01-19 13:34:17 +01:00
volumes:
- solr_data:/var/solr
2022-07-12 10:44:55 +02:00
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:${SOLR_PORT}/solr/"
]
2015-04-16 02:41:10 +02:00
redis:
2021-12-10 14:35:25 +01:00
image: redis:${REDIS_VERSION}
2023-04-17 09:49:40 +02:00
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
2023-06-10 08:11:18 +02:00
networks:
- redisnet
2022-07-12 10:44:55 +02:00
restart: unless-stopped
healthcheck:
test: [ "CMD", "redis-cli", "-e", "QUIT" ]
networks:
2023-06-10 08:11:18 +02:00
webnet:
ckannet:
solrnet:
2023-06-13 14:24:18 +02:00
internal: true
2023-06-10 08:11:18 +02:00
dbnet:
2023-06-13 14:24:18 +02:00
internal: true
2023-06-10 08:11:18 +02:00
redisnet:
2023-06-13 14:24:18 +02:00
internal: true