version: '3.4' services: # Run browser-sync and compile static assets. # # This is the primary server and it proxies # the Django app so that it can add the fancy # browser refresh JS. assets: build: context: . target: assets image: mozmeao/bedrock_assets:${GIT_COMMIT:-latest} command: gulp ports: - "8000-8010:8000-8010" volumes: - ./media/:/app/media:delegated - ./bedrock/:/app/bedrock:delegated environment: BS_PROXY_URL: "app:8080" BS_OPEN_BROWSER: "false" # the django app app: build: context: . target: devapp image: mozmeao/bedrock_test:${GIT_COMMIT:-latest} command: python manage.py runserver 0.0.0.0:8080 env_file: .env ports: - "8080:8080" volumes: - ./bedrock/:/app/bedrock:delegated - ./bin/:/app/bin:delegated - ./docker/:/app/docker:delegated - ./etc/:/app/etc:delegated - ./lib/:/app/lib:delegated - ./docs/:/app/docs:delegated - ./media/:/app/media:delegated - ./root_files/:/app/root_files:delegated - ./scripts/:/app/scripts:delegated - ./wsgi/:/app/wsgi:delegated - ./locale/:/app/locale:delegated - ./l10n/:/app/l10n:delegated # run the tests against local changes test: image: mozmeao/bedrock_test:${GIT_COMMIT:-latest} env_file: docker/envfiles/test.env volumes: - ./bedrock/:/app/bedrock:delegated - ./bin/:/app/bin:delegated - ./docker/:/app/docker:delegated - ./etc/:/app/etc:delegated - ./lib/:/app/lib:delegated - ./media/:/app/media:delegated - ./root_files/:/app/root_files:delegated - ./scripts/:/app/scripts:delegated - ./tests/:/app/tests:delegated - ./test_infra/:/app/test_infra:delegated - ./wsgi/:/app/wsgi:delegated - ./l10n/:/app/l10n:delegated # run tests with no volumes test-image: image: mozmeao/bedrock_test:${GIT_COMMIT:-latest} env_file: docker/envfiles/test.env # the django app release: build: context: . target: release args: GIT_SHA: ${GIT_COMMIT:-latest} image: mozmeao/bedrock:${GIT_COMMIT:-latest} release-local: image: mozmeao/bedrock:${GIT_COMMIT:-latest} env_file: .env ports: - "8000:8000" volumes: - ./bedrock/:/app/bedrock:delegated - ./bin/:/app/bin:delegated - ./docker/:/app/docker:delegated - ./etc/:/app/etc:delegated - ./lib/:/app/lib:delegated - ./root_files/:/app/root_files:delegated - ./scripts/:/app/scripts:delegated - ./wsgi/:/app/wsgi:delegated - ./locale/:/app/locale:delegated - ./l10n/:/app/l10n:delegated builder: build: context: . target: python-builder image: mozmeao/bedrock_build:${GIT_COMMIT:-latest} app-base: build: context: . target: app-base image: mozmeao/bedrock_code:${GIT_COMMIT:-latest}