20 Commits

Author SHA1 Message Date
Jonas Winkler
d8e9cd1283 updated docker 2020-11-02 19:50:38 +01:00
Jonas Winkler
8f4ddb30c1 updated dockerfiles 2020-11-01 23:01:36 +01:00
Jonas Winkler
505396bc5a updated docker config 2020-10-29 22:30:36 +01:00
Jonas Winkler
70c1a0e717 i fixed the docker 2020-10-29 00:46:57 +01:00
Florian Gabsteiger
da586fc90a Add bind-ip 0.0.0.0 to docker-compose command 2019-09-22 11:47:22 +02:00
Florian Gabsteiger
bdeaf33462 Copy gunicorn.conf to docker container and use it in entrypoint 2019-09-22 11:47:22 +02:00
Stéphane Brunner
0509d5a3d2 Tabs are not allowed in Yaml files 2019-01-26 14:23:11 +01:00
Colin Frei
cbc5f0603f
Set consume directory for webserver too
Fixes #289 

The HTTP POST endpoint saves the file in the consume directory.
This needs to be shared between the two services so that the file is actually consumed.
2018-12-30 07:43:49 +01:00
Erik Arvstedt
1f2079f65a Use --noreload for permanent server start commands
Without it, the server is highly resource-intensive even when
running idle
2018-03-23 11:13:20 +01:00
Georgi Todorov
10d017ebe4 expanding tabs in yaml file 2018-02-24 20:36:35 -05:00
Georgi Todorov
3f9ea7b971 Add a dependency link between two containers and change the way Django migrations are done. Provide example for auto-starting the containers 2018-02-05 18:23:35 -05:00
Guy
68cdeb7b3d changed docker-comppse.yml example to build the docker image instead of
pull the previously used debian based image from docker hub
2017-12-19 22:34:22 +02:00
Daniel Quinn
af4623e605
Merge pull request #270 from dev-rke/patch-2
#248: fix missing CSS
I'm not thrilled about this and would much rather have Nginx running to do the job, but I just don't have the time to do that right now.  As Pit says, this is better than leaving DEBUG on.
2017-11-05 20:45:28 +00:00
dev-rke
a8616ebfe2
#248: fix missing CSS
Force the server to use --insecure flag to also provide static contents like CSS files.
See #248 and #167 for more details.
2017-11-04 16:02:29 +01:00
dev-rke
a38d3bf7f8
Change default /consume volume
Change default /consume volume to ./consume on your host, so that no unexpected folder will be generated on the host machine.
2017-11-04 15:57:21 +01:00
Daniel Quinn
c199b0498d Added a comment as per #93 2016-03-19 13:19:54 +00:00
Daniel Quinn
9267794c33 Put @pitkley's repo into the .yml 2016-03-13 19:52:32 +00:00
Pit Kleyersburg
21cd4e9f14 Update env-var in Dockerfile, fix volume names 2016-03-02 09:10:52 +01:00
Tikitu de Jager
147f8f72a2 Simplify instructions for exporting with docker
The export workflow reusing the `/consume` volume is complex and error-
prone, and not at all necessary if the `docker-compose.yml` file has a
volume for `/export` from the beginning.
2016-02-19 22:27:48 +02:00
Pit Kleyersburg
724afa59c7 Add Dockerfile for application and documentation
This commit adds a `Dockerfile` to the root of the project, accompanied
by a `docker-compose.yml.example` for simplified deployment. The
`Dockerfile` is agnostic to whether it will be the webserver, the
consumer, or if it is run for a one-off command (i.e. creation of a
superuser, migration of the database, document export, ...).

The containers entrypoint is the `scripts/docker-entrypoint.sh` script.
This script verifies that the required permissions are set, remaps the
default users and/or groups id if required and installs additional
languages if the user wishes to.

After initialization, it analyzes the command the user supplied:

  - If the command starts with a slash, it is expected that the user
    wants to execute a binary file and the command will be executed
    without further intervention. (Using `exec` to effectively replace
    the started shell-script and not have any reaping-issues.)

  - If the command does not start with a slash, the command will be
    passed directly to the `manage.py` script without further
    modification. (Again using `exec`.)

The default command is set to `--help`.

If the user wants to execute a command that is not meant for `manage.py`
but doesn't start with a slash, the Docker `--entrypoint` parameter can
be used to circumvent the mechanics of `docker-entrypoint.sh`.

Further information can be found in `docs/setup.rst` and in
`docs/migrating.rst`.

For additional convenience, a `Dockerfile` has been added to the `docs/`
directory which allows for easy building and serving of the
documentation. This is documented in `docs/requirements.rst`.
2016-02-18 22:58:32 +01:00