More updates
This commit is contained in:
parent
fb9b0afcf0
commit
98aaff23c4
2
.env
2
.env
|
@ -34,7 +34,7 @@ CKAN_SOLR_URL=http://solr:8983/solr/ckan
|
||||||
TEST_CKAN_SOLR_URL=http://solr:8983/solr/ckan
|
TEST_CKAN_SOLR_URL=http://solr:8983/solr/ckan
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
REDIS_VERSION=6.0.7
|
REDIS_VERSION=6
|
||||||
CKAN_REDIS_URL=redis://redis:6379/1
|
CKAN_REDIS_URL=redis://redis:6379/1
|
||||||
TEST_CKAN_REDIS_URL=redis://redis:6379/1
|
TEST_CKAN_REDIS_URL=redis://redis:6379/1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# July 7 2022
|
# (from) July 7 2022
|
||||||
# This repo will be actively worked on from now.
|
# This repo will be actively worked on from now.
|
||||||
# This file will be my ToDo list of things to take care of
|
# This file will be my ToDo list of things to take care of
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ All the other images should live in separate repos
|
||||||
2. PostgreSQL - use current method (base image: postgres:12-alpine from DockerHub, enhanced in a Dockerfile)
|
2. PostgreSQL - use current method (base image: postgres:12-alpine from DockerHub, enhanced in a Dockerfile)
|
||||||
### This may change to be more like Solr though
|
### This may change to be more like Solr though
|
||||||
3. Redis - use current method (DockerHub image: redis:${REDIS_VERSION} specified as a compose service in the compose file)
|
3. Redis - use current method (DockerHub image: redis:${REDIS_VERSION} specified as a compose service in the compose file)
|
||||||
|
latest image to used is redis:6
|
||||||
4. nginx - base image: nginx:1.19.8-alpine from DockerHub, enhanced in a Dockerfile)
|
4. nginx - base image: nginx:1.19.8-alpine from DockerHub, enhanced in a Dockerfile)
|
||||||
5. DataPusher - built from the actual datapusher repo (https://github.com/ckan/datapusher)
|
5. DataPusher - built from the actual datapusher repo (https://github.com/ckan/datapusher)
|
||||||
6. CKAN Worker - add new (ckan worker) container in the compose setup
|
6. CKAN Worker - add new (ckan worker) container in the compose setup
|
||||||
|
@ -25,4 +26,4 @@ Go through all the new changes in the current repo and use those for the new rep
|
||||||
- Make asure ARGs are used if they are added to compose file
|
- Make asure ARGs are used if they are added to compose file
|
||||||
- Check out Florian's docs https://github.com/dbca-wa/ckan/blob/dbca2022/doc/maintaining/installing/install-from-docker-compose.rst
|
- Check out Florian's docs https://github.com/dbca-wa/ckan/blob/dbca2022/doc/maintaining/installing/install-from-docker-compose.rst
|
||||||
- Check out Florian's repo https://github.com/dbca-wa/ckan/tree/dbca2022
|
- Check out Florian's repo https://github.com/dbca-wa/ckan/tree/dbca2022
|
||||||
|
- Documentation to be re-done from scratch...anything that could be useful can be mentioned here eg: local storage for ckan.ini
|
||||||
|
|
|
@ -7,62 +7,62 @@ services:
|
||||||
build:
|
build:
|
||||||
context: nginx/
|
context: nginx/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
links:
|
#links:
|
||||||
- ckan
|
# - ckan
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:80:80"
|
- "0.0.0.0:81:80"
|
||||||
|
|
||||||
ckan:
|
#ckan:
|
||||||
container_name: ckan
|
# container_name: ckan
|
||||||
build:
|
# build:
|
||||||
context: ckan/
|
# context: ckan/
|
||||||
dockerfile: Dockerfile
|
# dockerfile: Dockerfile
|
||||||
args:
|
# args:
|
||||||
- TZ=${TZ}
|
# - TZ=${TZ}
|
||||||
env_file:
|
# env_file:
|
||||||
- .env
|
# - .env
|
||||||
links:
|
# links:
|
||||||
- db
|
# - db
|
||||||
- solr
|
# - solr
|
||||||
- redis
|
# - redis
|
||||||
- datapusher
|
# - datapusher
|
||||||
ports:
|
# ports:
|
||||||
- "0.0.0.0:${CKAN_PORT}:5000"
|
# - "0.0.0.0:${CKAN_PORT}:5000"
|
||||||
volumes:
|
# volumes:
|
||||||
- ckan_storage:/var/lib/ckan
|
# - ckan_storage:/var/lib/ckan
|
||||||
|
|
||||||
datapusher:
|
#datapusher:
|
||||||
container_name: datapusher
|
# container_name: datapusher
|
||||||
image: kowhai/datapusher:${DATAPUSHER_VERSION}
|
# image: kowhai/datapusher:${DATAPUSHER_VERSION}
|
||||||
ports:
|
# ports:
|
||||||
- "8800:8800"
|
# - "8800:8800"
|
||||||
|
|
||||||
db:
|
#db:
|
||||||
container_name: db
|
# container_name: db
|
||||||
build:
|
# build:
|
||||||
context: postgresql/
|
# context: postgresql/
|
||||||
args:
|
# args:
|
||||||
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
|
# - DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
environment:
|
# environment:
|
||||||
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
|
# - DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- PGDATA=/var/lib/postgresql/data/db
|
# - PGDATA=/var/lib/postgresql/data/db
|
||||||
volumes:
|
# volumes:
|
||||||
- pg_data:/var/lib/postgresql/data
|
# - pg_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
solr:
|
#solr:
|
||||||
container_name: solr
|
# container_name: solr
|
||||||
build:
|
# build:
|
||||||
context: solr/
|
# context: solr/
|
||||||
volumes:
|
# volumes:
|
||||||
- solr_data:/opt/solr/server/solr/ckan/data/index
|
# - solr_data:/opt/solr/server/solr/ckan/data/index
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: redis
|
container_name: redis
|
||||||
image: redis:${REDIS_VERSION}
|
image: redis:${REDIS_VERSION}
|
||||||
|
|
||||||
volumes:
|
#volumes:
|
||||||
ckan_storage:
|
# ckan_storage:
|
||||||
pg_data:
|
# pg_data:
|
||||||
solr_data:
|
# solr_data:
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
FROM nginx:alpine
|
FROM nginx:stable-alpine
|
||||||
|
|
||||||
ENV NGINX_DIR=/etc/nginx
|
ENV NGINX_DIR=/etc/nginx
|
||||||
|
|
||||||
COPY setup/index.html /usr/share/nginx/html/index.html
|
|
||||||
|
|
||||||
RUN mkdir -p ${NGINX_DIR}/sites-available
|
RUN mkdir -p ${NGINX_DIR}/sites-available
|
||||||
RUN mkdir -p ${NGINX_DIR}/sites-enabled
|
RUN mkdir -p ${NGINX_DIR}/sites-enabled
|
||||||
|
|
||||||
COPY setup/nginx.conf ${NGINX_DIR}
|
COPY setup/index.html /usr/share/nginx/html/index.html
|
||||||
COPY setup/sites-available/* ${NGINX_DIR}/sites-available
|
COPY setup/sites-available/* ${NGINX_DIR}/sites-available
|
||||||
|
|
||||||
RUN ln -s ${NGINX_DIR}/sites-available/ckan.conf ${NGINX_DIR}/sites-enabled/ckan.conf
|
RUN ln -s ${NGINX_DIR}/sites-available/ckan.conf ${NGINX_DIR}/sites-enabled/ckan.conf
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 81
|
|
@ -1,34 +0,0 @@
|
||||||
|
|
||||||
user nginx;
|
|
||||||
worker_processes auto;
|
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log warn;
|
|
||||||
pid /var/run/nginx.pid;
|
|
||||||
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
http {
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log main;
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
#tcp_nopush on;
|
|
||||||
|
|
||||||
keepalive_timeout 65;
|
|
||||||
|
|
||||||
#gzip on;
|
|
||||||
|
|
||||||
include /etc/nginx/sites-enabled/*.conf;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ proxy_temp_path /tmp/nginx_proxy 1 2;
|
||||||
server {
|
server {
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://ckan:5000/;
|
#proxy_pass http://ckan:5000/;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_cache cache;
|
proxy_cache cache;
|
||||||
|
|
Loading…
Reference in New Issue