ckan/docker/data/Dockerfile
Clément MOUCHET 39467745f1 ADDED:
- Data only container for Postgres db & CKAN FileStore
- Nginx container (still based on official container, but copies the config for portability)
UPDATED:
- Postgres Dockerfile to allow custom PGDATA directory & initiate it if it's not there or is empty
- fig.ml to reflect the latest changes (datapusher, nginx, data container)
2014-11-30 15:04:51 +00:00

20 lines
572 B
Docker

FROM phusion/baseimage:0.9.15
MAINTAINER Open Knowledge
# set UTF-8 locale
RUN locale-gen en_US.UTF-8 && \
echo 'LANG="en_US.UTF-8"' > /etc/default/locale
ENV CKAN_DATA /var/lib/ckan
ENV PGDATA /etc/postgresql/9.3/main
RUN mkdir -p $CKAN_DATA && chown -R www-data:www-data $CKAN_DATA
RUN echo "postgres:x:107:" >> /etc/group
RUN echo "postgres:x:103:107:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash" >> /etc/passwd
RUN mkdir -p $PGDATA && chown -R postgres:postgres $PGDATA
CMD ["/sbin/my_init"]
VOLUME ["/var/lib/ckan", "/etc/postgresql/9.3/main"]