Newer
Older
DummyAnd / docker-compose.yml
@Benoit Donneaux Benoit Donneaux on 12 Dec 2019 630 bytes [DP-590] Add and document support for Docker composer
version: '3'
services:
  default:
    build: 
      context: lazyDir
      dockerfile: centos7.Dockerfile
      args:
        uid: "${_UID:-1000}"
        gid: "${_GID:-1000}"
    volumes:
      - .:/home/android/workspace
      - ~/android/sdk:/opt/android/sdk
      - ~/.gradle:/home/android/.gradle
    working_dir: /home/android/workspace
    stdin_open: true
    tty: true
    hostname: build-android.local
    container_name: build-android.local
    command: bash
    networks:
      - bridge
    deploy:
      resources:
        limits:
          cpus: '1.5'
          memory: 1280M

networks:
  bridge:
    external: true