version: '3' services: db: image: postgres:10.1 ports: # 5432 may already in use by another PostgreSQL on host - "5433:5432" redis: image: redis:latest rabbitmq: image: rabbitmq:latest elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4 camo: image: pypa/warehouse-camo:latest ports: - "9000:9000" environment: CAMO_KEY: "insecure camo key" web: build: context: . args: DEVEL: "yes" IPYTHON: "no" # Uncomment the line below and add the private repo URL if you're # working on pypi-theme, this is a private repository due to the fact # that other people's IP is contained in it. #THEME_REPO: command: hupper -m gunicorn.app.wsgiapp -b 0.0.0.0:8000 -c gunicorn-cabotage.conf warehouse.wsgi:application env_file: dev/environment volumes: # We specify all of these directories instead of just . because we want to # avoid having ./node_modules from the host OS being shared with the docker # container, and since there's no way to exclude a directory, the only way # to make this work is to share multiple, smaller directories. These cover # the important things that we want to share, but changes to requirements # or any file not in these directories will require a rebuild. # The :z option fixes permission issues with SELinux by setting a # permissive security context. - ./dev:/opt/warehouse/src/dev:z - ./docs:/opt/warehouse/src/docs:z - ./warehouse:/opt/warehouse/src/warehouse:z - ./tests:/opt/warehouse/src/tests:z - ./htmlcov:/opt/warehouse/src/htmlcov:z - .coveragerc:/opt/warehouse/src/.coveragerc:z ports: - "80:8000" links: - db - redis - rabbitmq - elasticsearch - notdatadog worker: build: context: . args: DEVEL: "yes" command: hupper -m celery -A warehouse worker -B -S redbeat.RedBeatScheduler -l info volumes: - ./warehouse:/opt/warehouse/src/warehouse:z env_file: dev/environment environment: C_FORCE_ROOT: "1" links: - db - redis - rabbitmq - elasticsearch - smtp - notdatadog static: build: context: . dockerfile: Dockerfile.static command: bash -c "node --trace-warnings `which gulp` watch" volumes: - ./warehouse:/opt/warehouse/src/warehouse:z - ./Gulpfile.babel.js:/opt/warehouse/src/Gulpfile.babel.js:z - ./.babelrc:/opt/warehouse/src/.babelrc:z - ./.sass-lint.yml:/opt/warehouse/src/.sass-lint.yml:z smtp: build: context: . command: python /opt/warehouse/dev/smtp.py 0.0.0.0:2525 ports: - "2525:2525" volumes: - ./dev/smtp.py:/opt/warehouse/dev/smtp.py notdatadog: build: context: . command: python /opt/warehouse/dev/notdatadog.py 0.0.0.0:8125 ports: - "8125:8125/udp" volumes: - ./dev/notdatadog.py:/opt/warehouse/dev/notdatadog.py