docker-compose.yml 431 B

123456789101112131415161718
  1. version: '3.8'
  2. services:
  3. web:
  4. build: .
  5. command: /bin/bash -c "python manage.py runserver"
  6. # command: /bin/bash -c "gunicorn -c gu_docker.py main.wsgi:application"
  7. environment:
  8. - DJANGO_ONLINE=1
  9. volumes:
  10. # - /data/logs:/data/logs
  11. - /data/www/yixuedjango.cxhy.cn/code:/app
  12. # - /data/www/cxAIServer:/data/www/cxAIServer
  13. ports:
  14. - "16003:80"
  15. restart: unless-stopped