FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
docker-compose.yml 651 B
Newer Older
Mike Knee's avatar
Mike Knee committed
name: camsis-event-creator

services:
  example-webapp:
    build:
      context: .
      dockerfile: example.Dockerfile
Mike Knee's avatar
Mike Knee committed
    ports:
      - 8080:8080
    profiles:
      - example

  # Service to allow running tox within the application container via
  #   docker compose run --build --rm tox
  tox:
    build:
      context: .
      dockerfile: example/Dockerfile
      target: tox
    environment:
      COVERAGE_FILE: /tox/coverage
      TOXINI_WORK_DIR: /tox/work
      TOXINI_ARTEFACT_DIR: /tox/build
    tty: true
    profiles:
      - utilities
    volumes:
      - .:/usr/src/app:ro
E. Kirk's avatar
E. Kirk committed
      - /usr/src/app/build
Mike Knee's avatar
Mike Knee committed
      - ./build/compose/tox:/tox