Tag: spacy

Docker:通过django应用程序访问python类实例的容器

我是docker工人的新手,遇到了一个问题,处理docker集装箱之间的通信:我想build立一个docker容器,运行一个python类的实例,并通过我的web容器中的我的Django应用程序访问这个实例。 我正在运行一个docker-compose,它使用postgres数据库运行一个django应用程序(通过gunicorn服务): version: '2' services: # My web application running django and gunicorn web: restart: always build: ./web expose: – "8000" links: – "postgres:postgres" env_file: .env volumes: – ./web:/code – ./web/static:/usr/src/app/static command: /usr/local/bin/gunicorn toolapp.wsgi:application -w 2 -b :8000 –reload # The web server nginx: restart: always build: ./nginx/ ports: – "8084:80" volumes: – /www/static volumes_from: […]