version: '2'
services: 
#  database:
#    image: mongo:3
#    container_name: mtg_grimoire_database
  
  grimoire:
    image: java:8
    container_name: mtg_grimoire_app
#    links:
#      - database
    environment:
      DB_URL: "mongodb://test:test@database/mtg_grimoire"
      DB_NAME: "mtg_grimoire"
      PORT: "8080"
    ports:
      - 8080:8080
    volumes:
      - ./build/install/mtg-grimoire:/app
    working_dir: /app
    command: /app/bin/mtg-grimoire
version: '2'
services: 
#  database:
#    image: mongo:3
#    container_name: mtg_grimoire_database
  
  grimoire:
    image: java:8
    container_name: mtg_grimoire_app
#    links:
#      - database
    environment:
      DB_URL: "mongodb://test:test@database/mtg_grimoire"
      DB_NAME: "mtg_grimoire"
      PORT: "8080"
      JAVA_OPTS: "-agentlib:jdwp='transport=dt_socket,server=y,suspend=n,address=5005'"
    ports:
      - 8080:8080
      - 5005:5005
    volumes:
      - ./build/install/mtg-grimoire:/app
    working_dir: /app
    command: /app/bin/mtg-grimoire
Add debug option and port for java
[docker] Add debug option and port for java
