mirror of https://github.com/wooey/Wooey.git
Fix configuration of wooey and celery to properly inherit from new docker config
This commit is contained in:
parent
b2e27f8b30
commit
a92a7031ab
|
@ -0,0 +1,60 @@
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
|
||||
# Translations
|
||||
#*.mo Include so users don't have to self-build
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
# IDE
|
||||
.idea
|
|
@ -0,0 +1 @@
|
|||
BUILD_DIR=/wooey_build
|
|
@ -1,6 +1,6 @@
|
|||
FROM python:2.7
|
||||
|
||||
ENV BUILD_DIR=/wooey_build
|
||||
ARG BUILD_DIR
|
||||
|
||||
RUN pip install psycopg2
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
version: '2.1'
|
||||
volumes:
|
||||
user_uploads:
|
||||
wooey_db:
|
||||
|
||||
services:
|
||||
common:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
image: wooey:dev
|
||||
volumes :
|
||||
- ./user_settings.py:/docker_wooey/docker_wooey/settings/user_settings.py
|
||||
- user_uploads:/docker_wooey/docker_wooey/user_uploads
|
||||
environment:
|
||||
AMQP_URL: amqp://rabbit:5672
|
||||
DATABASE_NAME: wooey
|
||||
DATABASE_USER: wooey
|
||||
DATABASE_URL: db
|
||||
DATABASE_PASSWORD: wooey
|
||||
user: 1000:1000
|
|
@ -4,24 +4,10 @@ volumes:
|
|||
wooey_db:
|
||||
|
||||
services:
|
||||
common:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
image: wooey:dev
|
||||
volumes :
|
||||
- ./user_settings.py:/docker_wooey/docker_wooey/settings/user_settings.py
|
||||
- user_uploads:/docker_wooey/docker_wooey/user_uploads
|
||||
environment:
|
||||
AMQP_URL: amqp://rabbit:5672
|
||||
DATABASE_NAME: wooey
|
||||
DATABASE_USER: wooey
|
||||
DATABASE_URL: db
|
||||
DATABASE_PASSWORD: wooey
|
||||
user: 1000:1000
|
||||
|
||||
wooey:
|
||||
extends: common
|
||||
extends:
|
||||
file: docker-compose.common.yml
|
||||
service: common
|
||||
ports:
|
||||
- 8081:8080
|
||||
depends_on:
|
||||
|
@ -30,8 +16,10 @@ services:
|
|||
command: ./run-server
|
||||
|
||||
celery:
|
||||
extends: common
|
||||
command: celery worker -A docker_wooey -c 4 --beat -l info -s schedule
|
||||
extends:
|
||||
file: docker-compose.common.yml
|
||||
service: common
|
||||
command: celery worker -A docker_wooey -c 4 -B -l debug -s schedule
|
||||
|
||||
rabbit:
|
||||
image: rabbitmq
|
||||
|
|
Loading…
Reference in New Issue