mirror of
https://github.com/QingdaoU/OpenVJ.git
synced 2024-12-28 15:31:48 +00:00
测试改进部分配置文件,supervisor不支持Python3
This commit is contained in:
parent
e53da8c2b3
commit
9352f8648a
@ -1 +0,0 @@
|
||||
#!/usr/bin/env bash
|
@ -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
|
24
dockerfiles/server/docker-compose.example.yml
Normal file
24
dockerfiles/server/docker-compose.example.yml
Normal 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
|
@ -4,5 +4,4 @@ celery
|
||||
requests
|
||||
djangorestframework
|
||||
redis
|
||||
supervisor
|
||||
gunicorn
|
4
dockerfiles/server/run.sh
Normal file
4
dockerfiles/server/run.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user