services: opentripplanner: command: --load --serve environment: - JAVA_TOOL_OPTIONS=-Xmx8G expose: - 8080 image: opentripplanner/opentripplanner:latest restart: unless-stopped volumes: - /path/to/opentripplanner:/var/opentripplanner