测试改进部分配置文件,supervisor不支持Python3

This commit is contained in:
virusdefender 2016-04-28 12:23:00 +08:00
parent e53da8c2b3
commit 9352f8648a
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61
7 changed files with 30 additions and 4 deletions

View File

@ -1 +0,0 @@
#!/usr/bin/env bash

View File

@ -3,6 +3,6 @@ ENV PYTHONBUFFERED 1
RUN mkdir -p /code /code/log
COPY requirements.txt /tmp
RUN pip install -i http://pypi.douban.com/simple -r /tmp/requirements.txt --trusted-host pypi.douban.com
ADD supervisord.conf /etc
EXPOSE 8080
CMD bash /code/dockerfile/run.sh
WORKDIR /code
CMD bash /code/dockerfiles/server/run.sh

View File

@ -0,0 +1,24 @@
redis:
image: redis
# volumes:
# - /home/data/redis:/data
mysql:
image: mysql
# volumes:
# - /home/data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD={YOUR_PASSWORD}
openvj_server:
image: openvj
volumes:
- /home/openvj:/code
links:
- redis:redis
- mysq;:mysql
ports:
- "127.0.0.1:8090:8080"
environment:
- vj_env=server
- MYSQL_ENV_MYSQL_USER=root

View File

@ -4,5 +4,4 @@ celery
requests
djangorestframework
redis
supervisor
gunicorn

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
gunicorn openvj.wsgi:application -b 0.0.0.0:8080 --user nobody --group nogroup --reload &
wait