version: "3.7" services: app: build: context: . dockerfile: .devcontainer/app/dev.Dockerfile args: - requirements_file=dev.pip ports: - "8000:8000" depends_on: - db environment: - DJANGO_SETTINGS_MODULE=systori.settings.dev command: "/idle.sh" db: build: context: . dockerfile: .devcontainer/db/Dockerfile ports: - "5432:5432" volumes: - systori_postgres_data:/var/lib/postgresql/data dart1x: build: context: . dockerfile: .devcontainer/dart1x/Dockerfile volumes: - ./systori/dart/:/app:z # - /root/.pub-cache/:/root/.pub-cache/:z - .devcontainer/app:/startup entrypoint: /startup/idle.sh # create if needed /root/.pub-cache and change owner to current user, add in docker settings # `pwd`/docker-compose up -d dart1x # docker exec -it `container id` /bin/bash # cd app && pub get && pub build volumes: systori_postgres_data: external: true