cd docker-udata
docker-compose up
To be able to upload files, you will need to access the docker instance through an URL with a tld, i.e. localhost.local for example (set it in your /etc/hosts on your Unix machine).
Check that localhost.local:7000 is available in a browser.
This Docker image provide udata as well as all known plugins and themes.
It is packaged to run within uwsgi with gevent support.
By default, it exposes the frontend on the port 7000 and expect the following services:
mongodb:27017elasticsearch:9200redis:6379and use the following paths:
/udata/udata.cfg for udata configuration/udata/fs for storage root (as a volume by default)/udata/public for public assets root/udata/uwsgi/*.ini for uwsgi configuration files/src/*/setup.py for extra development packages to installYou can customize configuration by providing a custom udata.cfg or custom uwsgi ini file.
A sample docker-compose.yml file is also available in the repository.
Fetch the latest Docker image version
docker pull udata/udata
Then you can run the container with different configurations:
a custom udata configuration mounted (here a local udata.cfg):
docker run -v /absolute/path/to/udata.cfg:/udata/udata.cfg udata/udata
with custom uwsgi configurations (here contained in the uwsgi directory):
docker run -v `$PWD`/uwsgi:/udata/uwsgi udata/udata
with file storage as local volume binding:
docker run -v /path/to/storage:/udata/fs udata/udata
You can run standalone (front/worker/beat) instance with the front, worker and beat commands:
docker run udata/udata front
docker run udata/udata worker
docker run udata/udata beat
You can also execute udata commands with:
docker run [DOCKER OPTIONS] udata/udata [UDATA COMMAND]
By example, to initialise the database with fixtures and initialize the search index:
docker run -it --rm udata/udata init
List all commands with:
docker run -it --rm udata/udata --help
Note: Some commands requires either MongoDB, Redis or Elasticsearch to be up and ready.
You are also able to run celery commands with:
docker run -it --rm udata/udata celery status
For debugging purpose you can acces a bash prompt with:
docker run [DOCKER OPTIONS] udata/udata bash
You can install extra sources by mounting directories as subdirectories of /src/.
Given you have a udata theme awesome-theme in my-theme directory
and you want to use docker to hack on it with live reload,
you need to have the following line in your udata.cfg:
THEME = 'awesome-theme'
Then you can run the udata Development server with:
docker run -it -v `$PWD`/my-theme:/src/my-theme -v `$PWD`/udata.cfg:/udata/udata.cfg --rm udata/udata serve
Your theme will be installed and activated.
See the sample/theme directory to see a full theme development using docker-compose.
You can see some docker-compose configuration examples in the sample directory of this repository.
Content type
Image
Digest
sha256:ddcfcdbc1…
Size
376 MB
Last updated
about 2 years ago
docker pull udata/udata